Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita29d815

Browse files
committed
Improve gettimeofday() documentation.
Karl O. Pinc
1 parent0fc9b26 commita29d815

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
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 $
33
PostgreSQL documentation
44
-->
55

@@ -5786,15 +5786,6 @@ SELECT LOCALTIMESTAMP;
57865786
<function>CURRENT_TIMESTAMP</function>.
57875787
</para>
57885788

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-
57985789
<para>
57995790
It is important to know that
58005791
<function>CURRENT_TIMESTAMP</function> and related functions return
@@ -5803,8 +5794,7 @@ SELECT timeofday();
58035794
the intent is to allow a single transaction to have a consistent
58045795
notion of the <quote>current</quote> time, so that multiple
58055796
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.
58085798
</para>
58095799

58105800
<note>
@@ -5814,6 +5804,18 @@ SELECT timeofday();
58145804
</para>
58155805
</note>
58165806

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+
58175819
<para>
58185820
All the date/time data types also accept the special literal value
58195821
<literal>now</literal> to specify the current date and time. Thus,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp