Timestamp Data Type

CA Gen does not support the Timestamps With Time Zone data type and the use of explicit C-type timestamp casting in an input value. All CA Gen timestamps, and timestamp input values, are considered to be of the Timestamp Without Time Zone data type.

The following table displays the formats used to specify a value for a data type of Timestamp Without Time Zone

Description

Timestamp (o) Without Time Zone (Notes 1 and 3 below apply)

Timestamp (p) Without Time Zone (Notes 2 and 3 below apply)

Blank between date and time portions and colons in time portion

o yyyy-mm-dd hh:mm:ss

o yyyy-mm-dd hh:mm:ss

yyyy-mm-dd hh:mm:ss.nnnnnnnnnnnn

Minus sign between date and time portions and periods in time portion

o yyyy-mm-dd-hh.mm.ss

o yyyy-mm-dd-hh.mm.ss

yyyy-mm-dd-hh.mm.ss.nnnnnnnnnnnn

Blank between date and time portions and periods in time portion

o yyyy-mm-dd hh.mm.ss

o yyyy-mm-dd hh.mm.ss

yyyy-mm-dd hh.mm.ss.nnnnnnnnnnnn

Note:

  1. No fractional seconds; shown with and without optional trailing period after seconds.
  2. p is the number of digits of fractional seconds. nnnnnnnnnnnn can range from 1 to 12 instances of n.
  3. As an additional format, the character T can be substituted as the separator between the date and time portions of the value.

The following rules apply for timestamp data type inputs:

SQL statements also support the ODBC or JDBC string representation of a timestamp as an input value only. The ODBC and JDBC string representation of a timestamp has the form yyyy-mm-dd hh:mm:ss.nnnnnn.