cvs: phpdoc /en/reference/datetime/functions mktime.xml

From: Date: Fri, 06 Aug 2004 21:01:24 +0000
Subject: cvs: phpdoc /en/reference/datetime/functions mktime.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969362785@lists.php.net to get a copy of this message
vrana Fri Aug 6 17:01:24 2004 EDT Modified files: /phpdoc/en/reference/datetime/functions mktime.xml Log: Enabling DST (bug #22198) http://cvs.php.net/diff.php/phpdoc/en/reference/datetime/functions/mktime.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc/en/reference/datetime/functions/mktime.xml diff -u phpdoc/en/reference/datetime/functions/mktime.xml:1.10 phpdoc/en/reference/datetime/functions/mktime.xml:1.11 --- phpdoc/en/reference/datetime/functions/mktime.xml:1.10 Fri Aug 6 15:45:39 2004 +++ phpdoc/en/reference/datetime/functions/mktime.xml Fri Aug 6 17:01:23 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 --> <refentry id="function.mktime"> <refnamediv> @@ -48,6 +48,13 @@ <parameter>is_dst</parameter> was added in 3.0.10. </para> </note> + <para> + Some times are invalid if DST is on. If DST is enabled in e.g. 2:00, all + times between 2:00 and 3:00 are invalid and <function>mktime</function> + returns undefined (usually negative) value. Some systems (e.g. Solaris 8) + enable DST in midnight so time 0:30 of the day when DST is enabled is + evaluated as 23:30 of the previous day. + </para> <para> <function>mktime</function> is useful for doing date arithmetic and validation, as it will automatically calculate the correct

« previous php.doc (#969362785) next »