Template:CistaIsOpen

From NovaRoma
(Difference between revisions)
Jump to: navigation, search
(move close time to 17:00 Nov 24 Rome time)
m (Reverted edits by Gnaeus Cornelius Lentulus (Talk); changed back to last version by M. Lucretius Agricola)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{#expr: {{#time: U | +1 hours }} >= 1226210400 }} |1={{#switch: {{#expr: {{#time: U | +1 hours }} <= 1227542400 }} |1=1|}}|}}<noinclude>
+
<noinclude>
 
*If the cista is '''not open''', use nothing.
 
*If the cista is '''not open''', use nothing.
 
*If the cista is '''open''', use anything. The number "1" is suggested.
 
*If the cista is '''open''', use anything. The number "1" is suggested.
[[Category:Template variables]]
 
  
Server time seems to be GMT
 
  
Time now in Roma: {{ #time: G i A| +1 hours }}
+
* 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
  
Seconds since 1/1/70 in Roma {{ #time: U | +1 hours }}
 
  
Cista opens at Nov 9 7:00 {{ #time: U |Nov 9 7:00 }}
+
* '''Time now in Roma is {{ #time: M d "("D")" G i A| +1 hours }}. '''
Cista closes at Nov 24 17:00 {{ #time: U | Nov 24 17:00 }}
+
* 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 }}
  
Magic: {{#switch: {{#expr: {{#time: U | +1 hours }} >= 1226210400 }} |1={{#switch: {{#expr: {{#time: U | +1 hours }} <= 1226764800 }} |1=1|}}|}}
+
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>
 
</noinclude>

Latest revision as of 17:41, 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 May 14 (Tue) 1 41 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


Personal tools