Looks now nicer.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@22317 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-04-02 06:48:33 +00:00
parent 5ecfba1db9
commit 9da817250c

View file

@ -32,8 +32,9 @@
</listitem>
<listitem>
<simpara>
day is within the allowed number of days for the given month.
Leap years are taken into consideration.
<parameter>Day</parameter> is within the allowed number of
days for the given <parameter>month</parameter>. Leap
<parameter>year</parameter>s are taken into consideration.
</simpara>
</listitem>
</itemizedlist>
@ -249,7 +250,8 @@ $nextyear = mktime (0,0,0,date("m"), date("d"), date("Y")+1);
</funcsynopsis>
<para>
Returns an associative array containing the date information of
the timestamp as the following array elements:
the <parameter>timestamp</parameter> as the following array
elements:
<itemizedlist>
<listitem>
<simpara>
@ -350,7 +352,7 @@ $nextyear = mktime (0,0,0,date("m"), date("d"), date("Y")+1);
<refentry id="function.gmdate">
<refnamediv>
<refname>gmdate</refname>
<refpurpose>Gormat a GMT/CUT date/time</refpurpose>
<refpurpose>Format a GMT/CUT date/time</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
@ -443,37 +445,37 @@ echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
<refentry id="function.localtime">
<refnamediv>
<refname>localtime</refname>
<refpurpose>
Get the local time
</refpurpose>
<refpurpose>Get the local time</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcdef>array <function>localtime</function></funcdef>
<paramdef>int
<parameter>
<optional>timestamp</optional>
</parameter>
</paramdef>
<paramdef>bool
<parameter>
<optional>is_associative</optional>
</parameter>
</paramdef>
</funcsynopsis>
<para>
The <function>localtime</function> function returns an array identical to that
of the structure returned by the C function call. The first argument to
<function>localtime</function> is the timestamp, if this is not given the current
time is used. The second argument to the <function>localtime</function> is the
<parameter>is_associative</parameter>, if this is set to 0 or not supplied than the
array is returned as a regular, numerically indexed array. If the argument is set to
1 then <function>localtime</function> is an associative array containing all the
different elements of the structure returned by the C function call to localtime.
The names of the different keys of the associative array are as follows:
<itemizedlist>
<funcsynopsis>
<funcdef>array <function>localtime</function></funcdef>
<paramdef>int
<parameter>
<optional>timestamp</optional>
</parameter>
</paramdef>
<paramdef>bool
<parameter>
<optional>is_associative</optional>
</parameter>
</paramdef>
</funcsynopsis>
<para>
The <function>localtime</function> function returns an array
identical to that of the structure returned by the C function
call. The first argument to <function>localtime</function> is
the timestamp, if this is not given the current time is used.
The second argument to the <function>localtime</function> is the
<parameter>is_associative</parameter>, if this is set to 0 or not
supplied than the array is returned as a regular, numerically
indexed array. If the argument is set to 1 then
<function>localtime</function> is an associative array containing
all the different elements of the structure returned by the C
function call to localtime. The names of the different keys of
the associative array are as follows:
<itemizedlist>
<listitem>
<simpara>
"tm_sec" - seconds
@ -494,33 +496,33 @@ echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
"tm_mday" - day of the month
</simpara>
</listitem>
<listitem>
<simpara>
<listitem>
<simpara>
"tm_mon" - month of the year
</simpara>
</listitem>
<listitem>
<simpara>
</simpara>
</listitem>
<listitem>
<simpara>
"tm_year" - Year, not y2k compliant
</simpara>
</listitem>
<listitem>
<simpara>
</simpara>
</listitem>
<listitem>
<simpara>
"tm_wday" - Day of the week
</simpara>
</listitem>
<listitem>
<simpara>
</simpara>
</listitem>
<listitem>
<simpara>
"tm_yday" - Day of the year
</simpara>
</listitem>
<listitem>
<simpara>
</simpara>
</listitem>
<listitem>
<simpara>
"tm_isdst" - Is daylight savings time in effect
<simpara>
</listitem>
</simpara>
</listitem>
</itemizedlist>
</para>
</para>
</refsect1>
</refentry>
@ -587,14 +589,14 @@ echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
to the local date and time.
</para>
<para>
<parameter>is_dst</parameter> can be set to 1 if the time is
<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.
<parameter>Is_dst</parameter> was added in 3.0.10.
</para>
</note>
<para>
@ -611,7 +613,7 @@ echo date ("M-d-Y", mktime (0,0,0,1,1,1998));
echo date ("M-d-Y", mktime (0,0,0,1,1,98));
</programlisting>
</example>
<parameter>year</parameter> may be a two or four digit value,
<parameter>Year</parameter> may be a two or four digit value,
with values between 0-69 mapping to 2000-2069 and 70-99 to
1970-1999 (on systems where time_t is a 32bit signed integer, as
most common today, the valid range for
@ -641,7 +643,8 @@ echo strftime ("Last day in Feb 2000 is: %d", $lastday);
<refentry id="function.strftime">
<refnamediv>
<refname>strftime</refname>
<refpurpose>format a local time/date according to locale settings
<refpurpose>
Format a local time/date according to locale settings
</refpurpose>
</refnamediv>
<refsect1>