mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
documentet newly added functions unixtojd() and jdtounix()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@22866 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
10710191e2
commit
671611150f
1 changed files with 54 additions and 0 deletions
|
@ -428,6 +428,60 @@ echo easter_days(1913); /* 2, i.e. March 23 */
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.unixtojd">
|
||||
<refnamediv>
|
||||
<refname>unixtojd</refname>
|
||||
<refpurpose>Convert UNIX timestamp to Julian Day</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int <function>unixtojd</function></funcdef>
|
||||
<paramdef>int <parameter><optional>timestamp</optional></parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Return the Julian Day for a UNIX <parameter>timestamp</parameter>
|
||||
(seconds since 1.1.1970), or for the current day if no
|
||||
<parameter>timestamp</parameter> is given.
|
||||
</para>
|
||||
<para>
|
||||
See also <function>jdtounix</function>.
|
||||
</para>
|
||||
<para>
|
||||
This function is only available in PHP versions
|
||||
after PHP4RC1.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.jdtounix">
|
||||
<refnamediv>
|
||||
<refname>jdtounix</refname>
|
||||
<refpurpose>Convert Julian Day to UNIX timestamp</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcdef>int <function>jdtounix</function></funcdef>
|
||||
<paramdef>int <parameter>jday</parameter></paramdef>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
This function will return a UNIX timestamp corresponding
|
||||
to the Julian Day given in <parameter>jday</parameter>
|
||||
or false if <parameter>jday</parameter> is not inside
|
||||
the UNIX epoch (Gregorian years between 1970 and 2037 or
|
||||
2440588 <= <parameter>jday</parameter> <= 2465342 )
|
||||
</para>
|
||||
<para>
|
||||
See also <function>jdtounix</function>.
|
||||
</para>
|
||||
<para>
|
||||
This function is only available in PHP versions
|
||||
after PHP4RC1.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
</reference>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
|
Loading…
Reference in a new issue