You use this syntax rule to specify the data format of the plain text values in which TIME columns are entered and output.
This format only applies to the export or import command in which it is specified. If a time format is not specified in a command, then either the Loader default is used or a value specified with the SET TIME command. You use the SET TIME command to specify the time format for all subsequent commands. In a single Loader session, this applies until a new SET command is executed.
<time_spec> ::= TIME <standard_time_mask> | TIME '<valFREE_MASK>'
TIME <standard_time_mask> |
Specification of a standardized time mask |
<standard_time_mask> |
Possible values:
EUR | INTERNAL| ISO| JIS | USA |
TIME '<valFREE_MASK>' |
Freely definable time mask Use H for hours, M for minutes, and S for seconds. Minutes and seconds must have two digits. Hours must have two or four digits. |
EXPORT COLUMNS * FROM
hotel.reservation
OUTSTREAM
'reservation.data'
TIME ISO
Standard time mask ISO is specified.
EXPORT COLUMNS * from
hotel.reservation
OUTSTREAM
'reservation.data'
TIME ′HH:MM:SS′
Example
content of the data stream
"14:30:08"
Mask HH:MM:SS is specified for times.
You use the standard_time_mask to specify the format for plain text values in which TIME columns are entered and displayed.
'HHHH' |
Four-digit hour format |
'HH' |
Two-digit hour format |
'MM' |
Two-digit minute format (00-59) |
'SS' |
Two-digit second format (00-59) |
Format |
General Format |
Example |
EUR |
'HH.MM.SS' |
'14.30.08' |
INTERNAL |
'HHHHMMSS' |
'00143008' |
ISO/JIS |
'HH:MM:SS' |
'14:30:08' |
USA |
'HH:MM AM (PM)' |
'2:30 PM' |
Minutes and seconds must have two digits. Except in the format INTERNAL, the hours must have two digits. In the format INTERNAL, the hours must have two or four digits.
When data is loaded, hours with numbers greater than 24 cause errors, except in the format INTERNAL. When data is unloaded, hours are displayed modulo 24, except in the format INTERNAL. In the format INTERNAL, you can specify hours up to 9999.
You use the output format valFREEMASK to specify the format for plain text values in which TIME columns are entered and displayed.