Webtags/Parameters: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
355 bytes removed ,  09:06, 3 October 2022
m
Line 171: Line 171:


====Time zones====
====Time zones====
Before I explain what time/date output modifiers can do, something they can't do.


All web tag outputs are in local time, except '''<#timeUTC>'''.  
All web tag outputs are in local time, except '''<#timeUTC>'''.  


Cumulus 2 internally stored all date/times in UTC, and the development of MX is planned to attach UTC date-times to all data although (at time of typing this) this is not yet implemented so MX maintains compatibility with Cumulus 1 legacy software.
In most MX releases, you can use a script to convert a time to UTC. This is not the place to tell you how to write the script, but taking time of highest pressure today as an example, you would use <#TpressTH format=Hh:mm> and <#TpressTH format=zzz>, the first gives hours and minutes in your local time, and the second gives the offset that needs to be applied to that time to convert it to UTC.
 
[[File:Badge vMx.png]]In most MX releases, you can use a script to convert a time to UTC. This is not the place to tell you how to write the script, but taking time of highest pressure today as an example, you would use <#TpressTH format=Hh:mm> and <#TpressTH format=zzz>, the first gives hours and minutes in your local time, and the second gives the offset that needs to be applied to that time to convert it to UTC.


====Time resolution====
====Time resolution====

Navigation menu