- saxus blogja
- A hozzászóláshoz be kell jelentkezni
- 2210 megtekintés
Hozzászólások
- A hozzászóláshoz be kell jelentkezni
Látom nem esett le: mégis mi köze van a "winfosnak" ahhoz, hogy 1970. jan 1. az unix epoch? (Igen, tudom mi ez a dátum.)
----------------
Lvl86 Troll, "hobbifejlesztő" - Think Wishfully™
- A hozzászóláshoz be kell jelentkezni
Ennél nagyobb WTF, hogy egy sima return 0; bőven elegendő itt, felesleges az strtotime() hívás.
- A hozzászóláshoz be kell jelentkezni
Az gondolom túl egyszerű lett volna :)
- A hozzászóláshoz be kell jelentkezni
Troll on:
Miért, lekezeli a korábbi dátumokat?
- A hozzászóláshoz be kell jelentkezni
Troll on: A windows hibája!
----------------
Lvl86 Troll, "hobbifejlesztő" - Think Wishfully™
- A hozzászóláshoz be kell jelentkezni
Folytassuk:
Kérdem én, állította egy pillanatig is, hogy ez a Windows hibája?
Csak annyit közölt, hogy nem kezeli le.
:-)
- A hozzászóláshoz be kell jelentkezni
Ez a kód alapvetően undorító.
- A hozzászóláshoz be kell jelentkezni
Ezt nem csak a windows nem tudja kezelni...
innen:
http://php.net/manual/en/function.strtotime.php
Note:
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 UTC to Tue, 19 Jan 2038 03:14:07 UTC. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems. PHP 5.1.0 and newer versions overcome this limitation though.
For 64-bit versions of PHP, the valid range of a timestamp is effectively infinite, as 64 bits can represent approximately 293 billion years in either direction
- A hozzászóláshoz be kell jelentkezni
Igen, pont erről van szó: semmi köze a Windowshoz.
----------------
Lvl86 Troll, "hobbifejlesztő" - Think Wishfully™
- A hozzászóláshoz be kell jelentkezni