Contents Index TIME_ZONE_ADJUSTMENT option [database] TRUNCATE_DATE_VALUES option [database]

ASA Database Administration Guide
  Database Options
    Alphabetical list of options

TIMESTAMP_FORMAT option [compatibility]


Function 

Sets the format for timestamps that are retrieved from the database.

Allowed values 

String, composed of the symbols listed below.

Scope 

Can be set for an individual connection or for the PUBLIC group. Takes effect immediately.

Default 

YYYY-MM-DD HH:NN:ss.SSS

For Open Client and JDBC connections the default is set to YYYY-MM-DD HH:NN:SS.SSS.

Description 

The format is a string using the following symbols:

Symbol Description
yy Two digit year
yyyy Four digit year
mm Two digit month, or two digit minutes if following a colon (as in 'hh:mm')
mmm[m...] Character short form for months—as many characters as there are "m"s
dd Two digit day of month
ddd[d...] Character short form for day of the week
hh Two digit hours
nn Two digit minutes
ss.ssssss Seconds and fractions of a second, up to six decimal places. Not all platforms support timestamps to a precision of six places.
aa am or pm (12 hour clock)
pp pm if needed (12 hour clock)
f Use French days and months (deprecated)

Each symbol is substituted with the appropriate data for the date that is being formatted.

For symbols that represent character data (such as mmm), you can control the case of the output as follows:

For symbols that represent numeric data, you can control zero-padding with the case of the symbols:


Contents Index TIME_ZONE_ADJUSTMENT option [database] TRUNCATE_DATE_VALUES option [database]