Converts TIME data as PERIOD(TIME[(n)] [WITH TIME ZONE]) or PERIOD(TIMESTAMP[(n)][WITH TIME ZONE]).
CAST Syntax
CAST ( time_expression AS period_data_type [ data_attribute [...] ] )
- time_expression
-
The TIME expression to be converted.
- period_data_type
-
The data type to which the expression is to be converted.
- data_attribute
- One of the following data attributes:
- FORMAT
- NAMED
- TITLE