Template:CistaIsOpen
From NovaRoma
(Difference between revisions)
m (Protected "Template:CistaIsOpen": so pleb tribs can operate notice [move=sysop]) |
m (Reverted edits by Gnaeus Cornelius Lentulus (Talk); changed back to last version by M. Lucretius Agricola) |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | *not open, use | + | *If the cista is '''not open''', use nothing. |
− | *open, use anything | + | *If the cista is '''open''', use anything. The number "1" is suggested. |
− | [[Category:Template variables]]</noinclude> | + | |
+ | |||
+ | * Server time seems to be UTC/GMT. Server time is now (at the time of page load) {{ #time:Y M d "("D")" G i A}}. | ||
+ | * Rome time is UTC/GMT +1 hour | ||
+ | ** DST starts on Sunday, 28 March 2010, 02:00 local standard time | ||
+ | ** DST ends on Sunday, 31 October 2010, 03:00 local daylight time | ||
+ | |||
+ | |||
+ | * '''Time now in Roma is {{ #time: M d "("D")" G i A| +1 hours }}. ''' | ||
+ | * Seconds since 1/1/70 in Roma: {{ #time: U | +1 hours }}. | ||
+ | * [http://www.timeanddate.com/worldclock/city.html?n=215 Check Rome time on timeanddate.com]. | ||
+ | |||
+ | <!-- | ||
+ | *Cista opens at Nov 9 7:00 {{ #time: U |Nov 9 7:00 }} | ||
+ | *Cista closes at Nov 24 17:00 {{ #time: U | Nov 24 17:00 }} | ||
+ | |||
+ | Function is <nowiki>{{#switch: {{#expr: {{#time: U | +1 hours }} >= open time }} |1={{#switch: {{#expr: {{#time: U | +1 hours }} <= close time }} |1=1|}}|}}</nowiki> | ||
+ | |||
+ | Where "open time" and "close time" are calculated using | ||
+ | |||
+ | <nowiki>{{ #time: U | time }}</nowiki> | ||
+ | |||
+ | The offset between Rome time and server time is accounted for with | ||
+ | |||
+ | <nowiki>{{ #time: U | +2 hours }}</nowiki> | ||
+ | |||
+ | The offset should be checked before each election because Italy uses DST. | ||
+ | --> | ||
+ | [[Category:Template variables]] | ||
+ | </noinclude> |
Latest revision as of 17:40, 9 July 2010
- 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 UTC/GMT. Server time is now (at the time of page load) 2024 Nov 24 (Sun) 6 29 AM.
- Rome time is UTC/GMT +1 hour
- DST starts on Sunday, 28 March 2010, 02:00 local standard time
- DST ends on Sunday, 31 October 2010, 03:00 local daylight time
- Time now in Roma is Nov 24 (Sun) 7 29 AM.
- Seconds since 1/1/70 in Roma: 1732433386.
- Check Rome time on timeanddate.com.