Date: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add Terrain dates)
m (Fix table and code width)
Line 36: Line 36:
|-
|-
! rowspan="7" | {{Name|arma2oa|short}}
! rowspan="7" | {{Name|arma2oa|short}}
| [[Bukovina]] ({{Name|arma2acr|short}})
| [[Bukovina]] <span style="font-size: smaller">(A2:ACR)</span>
| 2008-10-11 09h20
| 2008-10-11 09h20
|-
|-
| [[Takistan]]<br>Takistan cut out ({{Name|arma2acr|short}})
| [[Takistan]]<br>Takistan cut out <span style="font-size: smaller">(A2:ACR)</span></span>
| 2009-05-28 16h20
| 2009-05-28 16h20
|-
|-
Line 45: Line 45:
| 2009-05-29 11h30
| 2009-05-29 11h30
|-
|-
| [[Bystrica]] ({{Name|arma2acr|short}})
| [[Bystrica]] <span style="font-size: smaller">(A2:ACR)</span>
| 2010-07-06 10h00
| 2010-07-06 10h00
|-
|-
Line 105: Line 105:


{{Informative | Using [[setDate]] with an incorrect (like negative or exceeding) value will still work properly:
{{Informative | Using [[setDate]] with an incorrect (like negative or exceeding) value will still work properly:
<code>[[private]] _date {{=}} [[date]];<br><!--
<code>[[private]] _date {{=}} [[date]];<br><br><!--
-->_date [[set]] [3, 25]; {{cc|set hour to 25}}<br><!--
-->{{cc|set hour to 25}}<br><!--
-->[[setDate]] _date; {{cc|will be tomorrow 1am}}</code>}}
-->_date [[set]] [3, 25];<br><br><!--
-->[[setDate]] _date;<br><!--
-->{{cc|date {{=}} next day 1am}}</code>}}





Revision as of 20:12, 30 June 2020

Default Mission Editor Terrains dates
Game Terrain DateTime
OFP Everon 1985-05-10 07h30
Malden
Kolgujev
Desert Island
OFP:R Nogova 1985(?)-05-10 07h30
Arma Sahrani 2007-06-07 08h30
Southern Sahrani
Rahmadi
armaqg United Sahrani ?
Arma 2 Utes 2008-10-11 14h20
Chernarus
Arma 2:OA Bukovina (A2:ACR) 2008-10-11 09h20
Takistan
Takistan cut out (A2:ACR)
2009-05-28 16h20
Zargabad 2009-05-29 11h30
Bystrica (A2:ACR) 2010-07-06 10h00
Desert 2012-06-24 07h30
Proving Grounds 2012-06-24 13h00
Shapur 2012-07-24 10h00
Arma 3 Stratis 2035-06-06 12h00
Altis 2035-06-24 12h00
Malden 2035 2035-06-24 12h00
Virtual Reality 2035-05-28 13h37
Arma 3 Apex Tanoa 2035-06-06 12h00
Arma 3 Contact Livonia 2035-06-24 10h00
TKOH Oil Rig 2011-01-04 09h20
Seattle 2013-05-08 11h20
South Asia 2012-06-01 10h20

Format:

[year, month, day, hour, minute]

Please note that this array format does not contain seconds.


Description: all values are Numbers. month and day start at 1:

  • year - year set in the game (see table below)
  • month - a number from 1 to 12
  • day - a number from 1 to 31
  • hour - a number from 0 to 23
  • minute - a number from 0 to 59
Using setDate with an incorrect (like negative or exceeding) value will still work properly: private _date = date;

// set hour to 25
_date set [3, 25];

setDate _date;
// date = next day 1am


Commands:


Functions: