NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
T-4
TIME_FORMAT Option
TIME_FORMAT Option
TIME_FORMAT is an option of the SQLCI report writer SET STYLE command that
defines a default print format for items specified with AS TIME *.
time-format
is a format to use as the default format for print items specified with AS TIME *.
(See AUDIT File Attribute on page A-68 for information about how to specify the
formats.)
The default format is HP2:M2:S2.
Examples—TIME_FORMAT
The following example sets a new default time format:
>> SET STYLE TIME_FORMAT "HB:M2:S2:C2:T3";
An example of this format is:
3:45:20:16:033
TIME Data Type
Data of type TIME represents a time of day according to a 24-hour clock. Values of data
type TIME are equivalent to values of data type DATETIME declared as follows:
DATETIME HOUR TO SECOND
See DATETIME Data Type on page D-14 if you need additional information.
Examples—TIME Data Type
These are literals of data type TIME in (respectively) default, USA, and European
format:
TIME "13:40:05"
TIME "1:40:05 PM"
TIME "13.40.05"
See DATE-TIME Literals on page D-9 if you need additional information.
TIME_FORMAT “time-format