dateToNumber: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ''' | | '''dateToNumber''' date |= Syntax | ||
|p1= date: [[Array]] - |= PARAMETER1 | |p1= date: [[Array]] - |= PARAMETER1 | ||
Line 20: | Line 20: | ||
| [[Number]] |= RETURNVALUE | | [[Number]] |= RETURNVALUE | ||
|x1= <code>_float = [[dateToNumber]] [2035,7,6,12,0]; //0.510959</code>|= EXAMPLE1 | |||
| | |x2= <code>[[dateToNumber]] [[date]]; //will return float number for the current date.</code>|= EXAMPLE2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[date]], [[daytime]], [[time]] |= SEEALSO | | [[date]], [[daytime]], [[time]], [[numberToDate]] |= SEEALSO | ||
| |= MPBEHAVIOUR | | |= MPBEHAVIOUR |
Revision as of 13:34, 4 October 2013
Description
- Description:
- Convert a date to a float number, based on Jan 1st 00:00:00 = 0 and Dec 31th 23:59:59 = 1
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_float = dateToNumber [2035,7,6,12,0]; //0.510959
- Example 2:
dateToNumber date; //will return float number for the current date.
Additional Information
- See also:
- datedaytimetimenumberToDate
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