|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-20 20:49 UTC] jim at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 03:00:02 2026 UTC |
<html> <body> <? $timenow = time(); $start_north_america = mktime(2,0,0,4,4,1999); $end_north_america = mktime(2,0,0,10,31,1999); if ($timenow > $start_north_america && $timenow < $end_north_america){ echo "Yes<BR>";} else {echo "No<BR>";} echo "$start_north_america<BR>"; echo $end_north_america; ?> </body> </html> /* mktime(2,0,0,4,3,1999) or mktime(2,0,0,4,5,1999) produces the correct Unix Timestamp result */ /* Only mktime(2,0,0,4,4,1999) produces -1 */ /* You can see it at www.koalanet.com/timetest.html */