BIS fnc calculateDateTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Jaffa moved page BIS fnc calculateDateTime to BIS fnc CalculateDateTime: Match Capitalisation ingame)
mNo edit summary
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.86|= Game version
|1.86|Game version=
____________________________________________________________________________________________


| <pre>
<!---|arg= local |Multiplayer Arguments=--->
/************************************************************
 
<!---|eff= local |Multiplayer Effects=--->
 
| <pre>/************************************************************
Calculate Date
Calculate Date
Author: Zozo


Parameters: [start datetime, time offset (in seconds) or end datetime, time unit]
Parameters: [start datetime, time offset (in seconds) or end datetime, time unit]
Line 25: Line 27:
Example: [date, 60, "m"] call BIS_fnc_CalculateDateTime
Example: [date, 60, "m"] call BIS_fnc_CalculateDateTime
Example: [date, [2035,8,29,11,55], "h"] call BIS_fnc_CalculateDateTime
Example: [date, [2035,8,29,11,55], "h"] call BIS_fnc_CalculateDateTime
************************************************************/
************************************************************/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
 
#define TIME_FLOAT_CONVERT_DAYS   365
#define TIME_FLOAT_CONVERT_HOURS 8760
#define TIME_FLOAT_CONVERT_MINUTES 525600
#define TIME_FLOAT_CONVERT_SECONDS 31536000
 
&lt;/pre&gt;&lt;small&gt;''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''&lt;/small&gt; |= Description
____________________________________________________________________________________________


| &lt;!-- [] call [[BIS_fnc_CalculateDateTime]]; --&gt; |= Syntax
|[] call [[BIS_fnc_CalculateDateTime]]|Syntax=


|p1= |= Parameter 1
|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=


| |= Return value
|Datatype - description|Return value=
____________________________________________________________________________________________


|x1= &lt;code&gt;&lt;/code&gt; |=  
|x1= <code></code>|Example 1=
____________________________________________________________________________________________


| |= See also
|exec= call |Execution=


| |See also=
}}
}}


&lt;h3 style="display:none"&gt;Notes&lt;/h3&gt;
&lt;dl class="command_description"&gt;
&lt;!-- Note Section BEGIN --&gt;
&lt;!-- Note Section END --&gt;
&lt;/dl&gt;
&lt;h3 style="display:none"&gt;Bottom Section&lt;/h3&gt;
[[Category:Function Group: DateTime|{{uc:CalculateDateTime}}]]
[[Category:Function Group: DateTime|{{uc:CalculateDateTime}}]]
[[Category:Functions|{{uc:CalculateDateTime}}]]
[[Category:Functions|{{uc:CalculateDateTime}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:CalculateDateTime}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:CalculateDateTime}}]]

Revision as of 15:41, 25 December 2018

Hover & click on the images for description

Description

Description:
/************************************************************
	Calculate Date
	Author: Zozo

Parameters: [start datetime, time offset (in seconds) or end datetime, time unit]
time unit:
- "s" (default) - seconds
- "m" - minutes
- "h" - hours
- "d" - days

Returns the new datetime if offset is passed or
difference between dates if end datetime is passed
(in seconds)

Example: [date, 3600] call BIS_fnc_CalculateDateTime
Example: [date, 60, "m"] call BIS_fnc_CalculateDateTime
Example: [date, [2035,8,29,11,55], "h"] call BIS_fnc_CalculateDateTime
************************************************************/
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_CalculateDateTime
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

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