CVS update: phpdoc/functions

From: Date: Mon, 21 Jun 1999 00:57:14 +0000
Subject: CVS update: phpdoc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-7297@lists.php.net to get a copy of this message
Date: Sunday June 20, 1999 @ 20:57 Author: jim Update of /repository/phpdoc/functions In directory php:/tmp/cvs-serv11077/functions Modified Files: datetime.sgml Log Message: Add docs for is_dst parameter to mktime(). Index: phpdoc/functions/datetime.sgml diff -u phpdoc/functions/datetime.sgml:1.5 phpdoc/functions/datetime.sgml:1.6 --- phpdoc/functions/datetime.sgml:1.5 Sun Jun 20 13:15:59 1999 +++ phpdoc/functions/datetime.sgml Sun Jun 20 20:57:14 1999 @@ -291,6 +291,7 @@ <paramdef>int <parameter>month</parameter></paramdef> <paramdef>int <parameter>day</parameter></paramdef> <paramdef>int <parameter>year</parameter></paramdef> + <paramdef>int <optional><parameter>is_dst</parameter></optional></paramdef> </funcsynopsis> <para> <emphasis>Warning:</emphasis> Note the strange order of @@ -309,10 +310,19 @@ arguments thus omitted will be set to the current value according to the local date and time. </para><para> - MkTime is useful for doing date arithmetic and validation, as it - will automatically calculate the correct value for out-of-range - input. For example, each of the following lines produces the - string "Jan-01-1998". + <parameter>is_dst</parameter> can be set to 1 if the time + is during daylight savings time, 0 if it is not, or -1 (the + default) if it is unknown whether the time is within daylight + savings time or not. + </para> + <note> + <para><parameter>is_dst</parameter> was added in 3.0.10.</para> + </note> + <para> + <function>mktime</function> is useful for doing date arithmetic and + validation, as it will automatically calculate the correct value + for out-of-range input. For example, each of the following lines + produces the string "Jan-01-1998". <example> <title><function>mktime</function> example</title> <programlisting> @@ -341,6 +351,7 @@ <paramdef>int <parameter>month</parameter></paramdef> <paramdef>int <parameter>day</parameter></paramdef> <paramdef>int <parameter>year</parameter></paramdef> + <paramdef>int <optional><parameter>is_dst</parameter></optional></paramdef> </funcsynopsis> <para> Identical to <function>mktime</function> except the passed parameters

« previous php.dev (#7297) next »