# MT Conversion
Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
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