Time Format
The format specification is a string that contains both tokens and keywords. The following
keywords are supported:
INDICATOR
HOUR
MINUTE
SECOND
XM
The following tokens are supported to format the day, month, and year. The number of
contiguous characters determines the number of characters to be printed. If no hour
specification is included in the string, the time is assumed to be military format.
H or h - Hour
M or m - Minute
S or s - Second
Lower case tokens will have leading blanks, upper case will have leading zeroes. All
other included characters are printed as specified.
Sample Format Specifications:
Only one hour, minute, and second specification may occur in a time format specification
82
Manual de Instalación del CB-2
- Must be the only keyword
- Hour in minimum digits
- Minute in minimum digits
- Second in minimum digits
- AM/PM
Military
MMMM
(2:30 PM = "1430", 2:30 AM =
"0230")
Undelimited
HHMM
(2:30 PM = 0230)
MMHH
(2:30 PM = 3002)
HHMMSS
(2:30:16 PM = (023016)
hh:MM
(2:10 AM = "b2:10")
HH:MM XM
(2:10 AM = "02:10 AM")
HH-MM-SS
(2:10:16 PM = "02-10-16")
hh:MM:SS
(2:10:16 AM = "b2:10:16")
hh:MM:SS XM (2:10:16 PM = "b2:10:16 PM")
"b" = blank