|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-02-07 23:24 UTC] ddwyer at ncic dot com
According to the documentation, the timestamp is the number of seconds since 12am 1/1/70. A day has 60*60*24 (86400) seconds in it.
When I use the function:
date("H:i:s",86400);
...it replies 17:00:00 (5pm)
When I plug in a higher number, 107999, that gets me to 23:59:59-- a 30-hour day?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jul 03 04:00:02 2026 UTC |
Try... date("H:i:s",time()+86400); ^^^^^^^ or ... date("H:i:s",time()+107999);