reference/calendar/functions/unixtojd.xml
789af834328bf5d492ed174a4fedb226ccaf4b27
...
...
@@ -9,13 +9,14 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>int</type><methodname>unixtojd</methodname>
13
-
<methodparam choice="opt"><type>int</type><parameter>timestamp</parameter><initializer>time()</initializer></methodparam>
12
+
<type class="union"><type>int</type><type>false</type></type><methodname>unixtojd</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>timestamp</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Return the Julian Day for a Unix <parameter>timestamp</parameter>
17
17
(seconds since 1.1.1970), or for the current day if no
18
-
<parameter>timestamp</parameter> is given.
18
+
<parameter>timestamp</parameter> is given. Either way, the time is regarded
19
+
as local time (not UTC).
19
20
</para>
20
21
</refsect1>
21
22

...
...
@@ -38,10 +39,32 @@
38
39
<refsect1 role="returnvalues">
39
40
&reftitle.returnvalues;
40
41
<para>
41
-
A julian day number as integer.
42
+
A julian day number as integer, &return.falseforfailure;.
42
43
</para>
43
44
</refsect1>
44
45

46
+
<refsect1 role="changelog">
47
+
&reftitle.changelog;
48
+
<informaltable>
49
+
<tgroup cols="2">
50
+
<thead>
51
+
<row>
52
+
<entry>&Version;</entry>
53
+
<entry>&Description;</entry>
54
+
</row>
55
+
</thead>
56
+
<tbody>
57
+
<row>
58
+
<entry>8.0.0</entry>
59
+
<entry>
60
+
<parameter>timestamp</parameter> is nullable now.
61
+
</entry>
62
+
</row>
63
+
</tbody>
64
+
</tgroup>
65
+
</informaltable>
66
+
</refsect1>
67
+

45
68
<refsect1 role="seealso">
46
69
&reftitle.seealso;
47
70
<para>
...
...
@@ -51,7 +74,6 @@
51
74
</para>
52
75
</refsect1>
53
76
</refentry>
54
-

55
77
<!-- Keep this comment at the end of the file
56
78
Local variables:
57
79
mode: sgml
58
80