MIST getMilString

From DCS World Wiki - Hoggitworld.com
Revision as of 08:56, 13 April 2018 by Grimes (talk | contribs) (Created page with "{{Mission Scripting |fName= mist.getMilString |vNum = Mist 3.7 |desc= Returns a string in military time format ranging from '0000' to '2359'. time is defined in seconds, if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


mist.getMilString

Added with: Mist 3.7
Description
Returns a string in military time format ranging from '0000' to '2359'. time is defined in seconds, if time is not passed the function will use the current time of the mission.
Syntax
string mist.getMilString( number time )
Valid Input Values:
93600
Return value:
string
Return example:
'0200'
Usage Examples:
The following will insert the current time in military time format into a string.
local mil = mist.getMilString()
local string = 'It is ' .. mil .. 'hours! Pick up the pace!'
Notes:
Related Functions
tostringMGRS, tostringLL, tostringBR, getMGRSString, getLLString, getBRString, getLeadingPos, getLeadingMGRSString, getLeadingLLString, getLeadingBRString, getMilString, getClockString, getDateString, stringMatch, stringCondense

Scripting Engine

MIST Root Page