numberToDate: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) m (moved NumberToDate to numberToDate: to comply with arma notation) |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
(44 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 |= | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |gr1= Environment | ||
| | |descr= Convert float number to a date. | ||
| | |s1= [[numberToDate]] [year, time] | ||
| [[ | |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 {{hl|0}} is January 1<sup>st</sup> and {{hl|1}} is December 31<sup>st</sup>) | |||
| | |r1= [[Array]] format [[Date]] | ||
|x1= <sqf>setDate numberToDate [2008, 0.5324]; // sets date to [2008,7,13,7,49]</sqf> | |||
| | |seealso= [[dateToNumber]] [[getNumber]] [[isNumber]] [[parseNumber]] [[playersNumber]] | ||
}} | }} | ||
Latest revision as of 10:23, 13 May 2022
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:
Additional Information
- See also:
- dateToNumber getNumber isNumber parseNumber playersNumber
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