TIME consists of a time of day with or without a time zone.
Syntax
TIME [ (p) ] [ { WITH | WITHOUT } TIME ZONE ] | TIMETZ
[ AT TIME ZONE ]
Semantics
p |
(precision) specifies the number of fractional digits retained in the seconds field. By default, there is no explicit bound on precision. The allowed range 0 to 6. |
WITH TIME ZONE |
specifies that valid values must include a time zone |
WITHOUT TIME ZONE |
specifies that valid values do not include a time zone (default). If a time zone is specified in the input it is silently ignored. |
TIMETZ |
is the same as |
Limits
Data Type |
Low Value |
High Value |
Resolution |
TIME [p] |
00:00:00.00 |
23:59:59.99 |
1 MS / 14 digits |
TIME [p] WITH TIME ZONE |
00:00:00.00+12 |
23:59:59.99-12 |
1 ms / 14 digits |
Example |
Description |
|
ISO 8601 |
|
ISO 8601 |
|
ISO 8601 |
|
ISO 8601 |
|
same as 04:05; AM does not affect value |
|
same as 16:05; input hour must be <= 12 |
|
ISO 8601 |
|
ISO 8601 |
|
ISO 8601 |
|
ISO 8601 |
|
time zone specified by name |