Maldiskusjon:Sommertid

Sommertid vises ikke rediger

Debug:

{{Sommertid}}sommertid
({{ #timel: U}} - {{ #time: U}})/(60*60) → (1715819391 - 1715819391)/(60*60)
{{#expr: ({{ #timel: U}} - {{ #time: U}})/(60*60) }} → 0

Fra https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23timel

{{#time: Y-m-d }}2024-05-16
{{#timel: Y-m-d }}2024-05-16
{{#time: Y F d H:i:s}}2024 mai 16 00:29:51
{{#timel: Y F d H:i:s}}2024 mai 16 02:29:51

Sjekk ut U og Z

U Unix time. Seconds since January 1 1970 00:00:00 GMT.
Z Timezone offset in seconds.
{{#time: U}}1715819391
{{#timel: U}}1715819391
{{#time: Z}}0
{{#timel: Z}}7200

--> Z fungerer

--> Endre kode til

{{#expr: ({{ #timel: Z}} - {{ #time: Z}})/(60*60) }} → 2
Tilbake til siden «Sommertid».