|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-26 17:55 UTC] simone at ivg dot it
Description:
------------
The strtotime() function returns -1 if the date is prior to 1970-01-01.
Instead, date function works properly with negative timestamps.
Reproduce code:
---------------
strtotime("1951-12-22") returns -1
date("d/m/Y",-578944001) returns 28/08/1951
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 15:00:01 2026 UTC |
This works fine for me with PHP 4.4.6RC2-dev: <?php echo strtotime("1951-12-22"), "\n"; ?> -568947600