numberToDate: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 17: | Line 17: | ||
|descr= Convert float number to a date. | |descr= Convert float number to a date. | ||
|s1= [[numberToDate]] [year,time] | |s1= [[numberToDate]] [year, time] | ||
|p1= | |p1= year: [[Number]] - year value, e.g 2035 | ||
| | |p2= time: [[Number]] - year time in range 0..1, from beginning to end of the year (e.g <tt>0</tt> is January 1<sup>st</sup> and <tt>1</tt> is December 31<sup>st</sup>) | ||
|x1= <code> | |r1= [[Array]] format [[Date]] | ||
|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 11:44, 5 July 2021
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
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