numberToDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 27: Line 27:
|x1= <code>[[setDate]] [[numberToDate]] [2008, 0.5324]; {{cc|sets date to [2008,7,13,7,49]}}</code>
|x1= <code>[[setDate]] [[numberToDate]] [2008, 0.5324]; {{cc|sets date to [2008,7,13,7,49]}}</code>


|seealso= [[dateToNumber]], [[getNumber]], [[isNumber]], [[parseNumber]], [[playersNumber]]
|seealso= [[dateToNumber]] [[getNumber]], [[isNumber]], [[parseNumber]], [[playersNumber]]
}}
}}

Revision as of 16:48, 20 January 2022

Hover & click on the images for description

Description

Description:
Convert float number to a date.
Groups:
Environment

Syntax

Syntax:
numberToDate [year, time]
Parameters:
year: Number - year value, e.g 2035
time: Number - year time in range 0..1, from beginning to end of the year (e.g 0 is January 1st and 1 is December 31st)
Return Value:
Array format Date

Examples

Example 1:
setDate numberToDate [2008, 0.5324]; // sets date to [2008,7,13,7,49]

Additional Information

See also:
dateToNumber getNumberisNumberparseNumberplayersNumber

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note