|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-03-16 13:45 UTC] martin dot meridius at gmail dot com
Description: ------------ --- From manual page: http://www.php.net/function.getdate#Return Values --- PHP 5.3.3-1ubuntu9.3 with Suhosin-Patch (cli) (built: Jan 12 2011 16:07:38) $today = getdate(); $today[hours]; Returns 12-hours formatted, not 0 to 23 as described in documentation. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 12 23:00:01 2026 UTC |
It returns 24-hour values as documented. php > print_r(getdate(1234567890)); Array ( [seconds] => 30 [minutes] => 31 [hours] => 23 [mday] => 13 [wday] => 5 [mon] => 2 [year] => 2009 [yday] => 43 [weekday] => Friday [month] => February [0] => 1234567890 )