Fix issues in mcrypt and datetime directories (#691)

Part of #658
This commit is contained in:
Sergey Panteleev 2021-06-15 18:27:03 +03:00 committed by GitHub
parent 4287d6eadb
commit d91e36266d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 86 additions and 58 deletions

View file

@ -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;

View file

@ -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>

View file

@ -47,6 +47,13 @@
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns decrypted string.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>