Converts a TIMESTAMP value as PERIOD(DATE), PERIOD(TIME[(n)][WITH TIME ZONE]), or PERIOD(TIMESTAMP[(n)][WITH TIME ZONE]).
CAST Syntax
CAST ( timestamp_expression AS period_data_type [ data_attribute [...] ] )
- timestamp_expression
-
The timestamp 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