MIST getClockString

From DCS World Wiki - Hoggitworld.com


Added with: Mist 3.7
Returns a string of the time in a clock format. time is defined in seconds, if time is not passed the function will use the current time of the mission. The boolean value format if present will return the string in a 12 Hour clock format with an AM or PM attached to the end of the string. By default the function returns the time in a 24 hour format. HH:MM:SS
string mist.getClockString( number time ,boolean format )
Valid Input Values:
Return value:
Return example:
Usage Examples:
The following will insert the current time as a clock format into a message.
local theTime = mist.getClockString()
local string = 'It appears that the A-10C Digital Clock has failed. Current Mission Time: ' .. theTime
Related Functions
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense

Scripting Engine

MIST Root Page