Formatting Times. The MT code converts times to stored format and upon output to 12-hour or 24-hour format. Like dates, times are stored in an internal format that is efficient for storage and processing. The MultiValue system stores times as the number of seconds after midnight (for example, 19800 is 5:30 AM).
Format
MT [H] [S] |
Parameter(s)
H |
Specifies 12-hour format with AM or PM appended. |
S |
Specifies that seconds are to be included. |
Description
When specifying 12-hour format, input should be entered with AM or PM immediately following; if they are not specified, AM is assumed. If H is not specified, 24-hour format is assumed.
The table below contains sample uses of the MT code when the data input is 46800:
Conversion |
Output |
MT |
13:00 |
MTH |
01:00PM |
MTS |
13:00:00 |
MTHS |
01:00:00PM |
See Also