|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.112 2003/01/29 01:08:42 tgl Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.113 2003/01/31 01:08:07 tgl Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="datatype">
|
@@ -1488,14 +1488,21 @@ SELECT b, char_length(b) FROM test2;
|
1488 | 1488 | </indexterm>
|
1489 | 1489 |
|
1490 | 1490 | <para>
|
1491 |
| - The <type>time</type> type can be specified as <type>time</type> or |
1492 |
| - as <type>time without time zone</type>. The optional precision |
1493 |
| - <replaceable>p</replaceable> should be between 0 and 6, and |
1494 |
| - defaults to the precision of the input time literal. |
| 1491 | + The time-of-day types are <type>time [ |
| 1492 | + (<replaceable>p</replaceable>) ] without time zone</type> and |
| 1493 | + <type>time [ (<replaceable>p</replaceable>) ] with time |
| 1494 | + zone</type>. Writing just <type>time</type> is equivalent to |
| 1495 | + <type>time without time zone</type>. |
1495 | 1496 | </para>
|
1496 | 1497 |
|
1497 | 1498 | <para>
|
1498 |
| - <xref linkend="datatype-datetime-time-table"> shows the valid <type>time</type> inputs. |
| 1499 | + Valid input for these types consists of a time of day followed by an |
| 1500 | + optional time zone. (See <xref linkend="datatype-datetime-time-table">.) |
| 1501 | + The optional precision |
| 1502 | + <replaceable>p</replaceable> should be between 0 and 6, and |
| 1503 | + defaults to the precision of the input time literal. If a time zone |
| 1504 | + is specified in the input for <type>time without time zone</type>, |
| 1505 | + it is silently ignored. |
1499 | 1506 | </para>
|
1500 | 1507 |
|
1501 | 1508 | <table id="datatype-datetime-time-table">
|
@@ -1536,27 +1543,6 @@ SELECT b, char_length(b) FROM test2;
|
1536 | 1543 | <entry><literal>allballs</literal></entry>
|
1537 | 1544 | <entry>same as 00:00:00</entry>
|
1538 | 1545 | </row>
|
1539 |
| - </tbody> |
1540 |
| - </tgroup> |
1541 |
| - </table> |
1542 |
| - |
1543 |
| - <para> |
1544 |
| - The type <type>time with time zone</type> accepts all input also |
1545 |
| - legal for the <type>time</type> type, appended with a legal time |
1546 |
| - zone, as shown in <xref |
1547 |
| - linkend="datatype-datetime-timetz-table">. |
1548 |
| - </para> |
1549 |
| - |
1550 |
| - <table id="datatype-datetime-timetz-table"> |
1551 |
| - <title>Time With Time Zone Input</title> |
1552 |
| - <tgroup cols="2"> |
1553 |
| - <thead> |
1554 |
| - <row> |
1555 |
| - <entry>Example</entry> |
1556 |
| - <entry>Description</entry> |
1557 |
| - </row> |
1558 |
| - </thead> |
1559 |
| - <tbody> |
1560 | 1546 | <row>
|
1561 | 1547 | <entry>04:05:06.789-8</entry>
|
1562 | 1548 | <entry>ISO 8601</entry>
|
|
0 commit comments