# MT Conversion
Updated: 1/18/2022, 5:31:44 PM
Created: 1/18/2022, 5:31:44 PM
Last Updated By: dependabot[bot]
Read Time: 2 minute(s)
The MT code is used to convert time notations such as 01:40:30 or 1:30 AM between internal and external format. It takes the general form:
- H specifies 12-hour format. If omitted, 24-hour format will be used.
- S specifies that seconds are to be included.
Time is stored internally as the number of seconds since midnight. The stored value can be output in 12 hour or 24 hour (international) format.
12:00PM is defined as noon and 12:00AM is defined as midnight.
For output conversions, AM and PM designators are automatically displayed. For example: 09:40AM and 06:30PM.
# Input Conversion #1
Input conversion is valid. Generally, for selection processing you should specify MT codes in field 7 of the data definition record.
AM or PM designators are taken into account. The result of the input conversion for certain values can be affected by the time_is_hours emulation setting.
# Input Conversion #2
# Output Conversion
Back to Conversion Processing