XDT
Displays dates and times converted between internal and external formats.
Syntax
XDT {value} {(options}
Options
A Uses an alternative display format. Times are displayed in 12-hour format and dates with 2-digit years. (The defaults are 24-hour times and 4-digit years.)
I Inhibits the prompt for a date/time value if none is specified.
Operation
The command attempts to determine the type of value supplied from its format. If no value is supplied, the default is to use the current date and time and prompt for a value. If the value supplied is ambiguous then both time and date results are displayed.
Comments
The date format is recognised and displayed using the current DATE-FORMAT setting. The use of full stops in times is determined by the current setting of the ALT.MT environment option.
Examples
The following command displays the current date and time in both internal and external formats and prompts for a value to be converted.
:XDT
Externally 15/06/2020 11:11:26
Internally 19160 40286
Enter date or time value:
Show the possible date and time for a numeric value
:XDT 12345
Externally 18/10/2001 03:25:35
Internally 12345 12345
Show the time and value for 10 minutes before midnight
:XDT -00:10:00
Externally 23:50:00
Internally 85800
Accept a full date and display its value using a 2-digit year
:XDT 23 March 1964 (A
Externally 23/03/64
Internally -1378
Interpret the value with dots as a time rather than a date when the environment option ALT.MT has been set and display the results using 12-hour format
:XDT 13.23.45 (A
Externally 01:23:45PM
Internally 48225