@LOCALDATETIME — converts a UTC date and time to the local time zone. The date may be in any input date format supported by this plugin, and must be a valid date within the supported range.

Syntax:
%@LOCALDATETIME[date,time,fmt,tfmt]

datethe UTC date to convert; defaults to today’s date
timethe UTC time to convert; defaults to the current time
fmtthe date format used to return the resulting date, and also to interpret ambiguous input dates; defaults to 256
tfmtthe format in which to return the time; defaults to 384 (24-hour, with seconds and milliseconds)

The time may be entered in either 12-hour or 24-hour format. tfmt may be 0 to return the time in 24-hour format, or 1 - 12 for a variety of different 12-hour formats. Add 128 to include seconds in the output time; add 256 to include milliseconds.

See also: @UTCDATETIME, which performs the reverse operation.

• New: This function does not exist in Take Command.