Difference between revisions of "MIST getDate"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Mission Scripting |fName= mist.time.getDate |vNum = Mist 3.7 |desc= Returns a table formatted as {d = day, m = month, y = year} of a given time in seconds. If no time val...")
(No difference)

Revision as of 08:03, 13 April 2018


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 the current date of the mission.
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()
 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