1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.261 2005/06/28 05:08:50 tgl Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.262 2005/06/29 01:52:56 momjian Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -5786,15 +5786,6 @@ SELECT LOCALTIMESTAMP;
5786
5786
<function>CURRENT_TIMESTAMP</function>.
5787
5787
</para>
5788
5788
5789
- <para>
5790
- There is also the function <function>timeofday()</function>, which for historical
5791
- reasons returns a <type>text</type> string rather than a <type>timestamp</type> value:
5792
- <screen>
5793
- SELECT timeofday();
5794
- <lineannotation>Result: </lineannotation><computeroutput>Sat Feb 17 19:07:32.000126 2001 EST</computeroutput>
5795
- </screen>
5796
- </para>
5797
-
5798
5789
<para>
5799
5790
It is important to know that
5800
5791
<function>CURRENT_TIMESTAMP</function> and related functions return
@@ -5803,8 +5794,7 @@ SELECT timeofday();
5803
5794
the intent is to allow a single transaction to have a consistent
5804
5795
notion of the <quote>current</quote> time, so that multiple
5805
5796
modifications within the same transaction bear the same
5806
- time stamp. <function>timeofday()</function>
5807
- returns the wall-clock time and does advance during transactions.
5797
+ time stamp.
5808
5798
</para>
5809
5799
5810
5800
<note>
@@ -5814,6 +5804,18 @@ SELECT timeofday();
5814
5804
</para>
5815
5805
</note>
5816
5806
5807
+ <para>
5808
+ There is also the function <function>timeofday()</function> which
5809
+ returns the wall-clock time and advances during transactions. For
5810
+ historical reasons <function>timeofday()</function> returns a
5811
+ <type>text</type> string rather than a <type>timestamp</type>
5812
+ value:
5813
+ <screen>
5814
+ SELECT timeofday();
5815
+ <lineannotation>Result: </lineannotation><computeroutput>Sat Feb 17 19:07:32.000126 2001 EST</computeroutput>
5816
+ </screen>
5817
+ </para>
5818
+
5817
5819
<para>
5818
5820
All the date/time data types also accept the special literal value
5819
5821
<literal>now</literal> to specify the current date and time. Thus,
0 commit comments