MIST getDate

From DCS World Wiki - Hoggitworld.com
Revision as of 15:50, 4 January 2019 by Acidictadpole (talk | contribs)


mist.time.getDate

Added with: Mist 3.7
Description
Returns a table formatted as {d = day, m = month, y = year} of a given time in seconds. If no time value is passed the function returns nil and logs an error
Syntax
table mist.time.getDate( number time )
Valid Input Values:
93600
Return value:
table
Return example:
{d = 2, m = 1, y = 2011}
Usage Examples:
 local date = mist.time.getDate(timer.getAbsTime())
 if date.d == 8 and date.m == 9 then
   env.info("Happy Birthday mom")
 end

Notes:
Not a replacement for Tinder.
Related Functions
getDate, getDHMS, convertToSec, milToGame

Scripting Engine

MIST Root Page