mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
parent
4287d6eadb
commit
d91e36266d
3 changed files with 86 additions and 58 deletions
|
@ -31,64 +31,8 @@
|
|||
<term><parameter>associative</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
If set to &false; or not supplied then the array is returned as a regular,
|
||||
numerically indexed array. If the argument is set to &true; then
|
||||
<function>localtime</function> returns 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:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_sec" - seconds, <literal>0</literal> to <literal>59</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_min" - minutes, <literal>0</literal> to <literal>59</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_hour" - hours, <literal>0</literal> to <literal>23</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_mday" - day of the month, <literal>1</literal> to <literal>31</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_mon" - month of the year, <literal>0</literal> (Jan) to <literal>11</literal> (Dec)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_year" - years since 1900
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_wday" - day of the week, <literal>0</literal> (Sun) to <literal>6</literal> (Sat)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_yday" - day of the year, <literal>0</literal> to <literal>365</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_isdst" - is daylight savings time in effect?
|
||||
</simpara>
|
||||
<simpara>
|
||||
Positive if yes, <literal>0</literal> if not, negative if unknown.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
Determines whether the function should return a regular, numerically indexed array,
|
||||
or an associative one.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -96,6 +40,71 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
If <parameter>associative</parameter> is set to &false; or not supplied then
|
||||
the array is returned as a regular, numerically indexed array.
|
||||
If <parameter>associative</parameter> is set to &true; then
|
||||
<function>localtime</function> returns 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:
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_sec" - seconds, <literal>0</literal> to <literal>59</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_min" - minutes, <literal>0</literal> to <literal>59</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_hour" - hours, <literal>0</literal> to <literal>23</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_mday" - day of the month, <literal>1</literal> to <literal>31</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_mon" - month of the year, <literal>0</literal> (Jan) to <literal>11</literal> (Dec)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_year" - years since 1900
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_wday" - day of the week, <literal>0</literal> (Sun) to <literal>6</literal> (Sat)
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_yday" - day of the year, <literal>0</literal> to <literal>365</literal>
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
"tm_isdst" - is daylight savings time in effect?
|
||||
</simpara>
|
||||
<simpara>
|
||||
Positive if yes, <literal>0</literal> if not, negative if unknown.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
|
||||
|
|
|
@ -18,6 +18,18 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
&no.function.parameters;
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns the current timestamp.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
|
@ -47,6 +47,13 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Returns decrypted string.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue