Template:CistaIsOpen
From NovaRoma
Revision as of 23:46, 24 November 2008 by M. Lucretius Agricola (Talk | contribs)
- If the cista is not open, use nothing.
- If the cista is open, use anything. The number "1" is suggested.
Server time seems to be GMT
Time now in Roma is 9 06 AM. Seconds since 1/1/70 in Roma: 1746090401
- Cista opens at Nov 9 7:00 1762668000
- Cista closes at Nov 24 17:00 1764000000
Function is {{#switch: {{#expr: {{#time: U | +1 hours }} >= open time }} |1={{#switch: {{#expr: {{#time: U | +1 hours }} <= close time }} |1=1|}}|}}
Where "open time" and "close time" are calculated using
{{ #time: U | time }}
The offset between Rome time and server time is accounted for with
{{ #time: U | +1 hours }}
The offset should be checked before each election because Italy uses DST.