mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
move para about invalid times with dst.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166790 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1b93def95f
commit
b682098eb4
1 changed files with 9 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.mktime">
|
||||
<refnamediv>
|
||||
|
@ -38,23 +38,23 @@
|
|||
</para>
|
||||
<para>
|
||||
<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)
|
||||
during daylight savings time (DST), 0 if it is not, or -1 (the default)
|
||||
if it is unknown whether the time is within daylight savings time
|
||||
or not. If it's unknown, PHP tries to figure it out itself. This can
|
||||
cause unexpected (but not incorrect) results.
|
||||
</para>
|
||||
<para>
|
||||
Some times are invalid if <parameter>is_dst</parameter> is set to 1. If
|
||||
DST is enabled in e.g. 2:00, all times between 2:00 and 3:00 are invalid
|
||||
and <function>mktime</function> returns an undefined (usually negative)
|
||||
value. Some systems (e.g. Solaris 8) enable DST at midnight so time 0:30
|
||||
of the day when DST is enabled is evaluated as 23:30 of the previous day.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<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
|
||||
|
|
Loading…
Reference in a new issue