Webtags (preserving history): Difference between revisions

m
Line 296: Line 296:
Note for Cumulus 1 - where lower (or upper, for easier comparison with MX) case shown, because Delphi is case insensitive, upper (or lower) case (in some cases, indicated by use of curved brackets) could be used instead (exceptions: a/p, ampm, am/pm, Am/Pm, AM/PM, A/P, AMPM etc display as input).
Note for Cumulus 1 - where lower (or upper, for easier comparison with MX) case shown, because Delphi is case insensitive, upper (or lower) case (in some cases, indicated by use of curved brackets) could be used instead (exceptions: a/p, ampm, am/pm, Am/Pm, AM/PM, A/P, AMPM etc display as input).


[[File:Badge vMx.png]]Remember that most single character format specifiers have a different meaning to when the same letter appears in a multi-character format.
[[File:Badge vMx.png]]Remember that most single character format specifiers have a different meaning to when the same letter appears in a multi-character format. The '''%''' shown in front of nearly every single character specifier in the table is not needed if that character is combined with other characters.  




==== Forum reference ====
==== Forum reference ====


For official full details see [https://cumulus.hosiene.co.uk/viewtopic.php?f=39&t=17888 Cumulus MX forum], the following table is revised for simplicity. (I've given a different selection of combinations and included '%' where necessary to avoid single character versus custom complications).
For official full details see [https://cumulus.hosiene.co.uk/viewtopic.php?f=39&t=17888 Cumulus MX forum], the following table is revised for simplicity. (I've given a different selection of combinations and included '%' where necessary to avoid single character versus custom complications). So "G" does not need a "%" because it is used on its own for a full date-time specifier. But "%d" is needed if only day number is required, but "d M" and "M" will both work to specify day number and month.


==== My Revised Table of Time and Date Output Modifiers ====
==== My Revised Table of Time and Date Output Modifiers ====
Line 344: Line 344:
|-
|-
|dddddd
|dddddd
|%D
|D
|Displays the date using the format given by the Long Date format.
|Displays the date using the format given by the Long Date format.
|e.g. '22 March 2020' (British Locale)
|e.g. '22 March 2020' (British Locale)
Line 424: Line 424:
|n
|n
|%m
|%m
|Displays the minute without a leading zero (0-59).  
|Displays the minute without a leading zero (0-59). [[File:Badge vMx.png]] As other examples show, the % is only needed when "m" is on its own.
|7 produced by {{Version badge 1}}<#daylength format=n>[[File:Badge vMx.png]]<#daylength format=m>
|7 produced by {{Version badge 1}}<#daylength format=n>[[File:Badge vMx.png]]<#daylength format=m>
|-
|-
Line 434: Line 434:
|s
|s
|%s
|%s
|Displays the second without a leading zero (0-59).
|Displays the second without a leading zero (0-59). [[File:Badge vMx.png]] As other examples show, the % is only needed when "m" is on its own.
| 9
|-
|-
|ss
|ss
Line 475: Line 476:
|TT
|TT
|T
|T
|Displays the time using the Long Time format.  
|Displays the time using the Long Time format. [[File:Badge vMx.png]] Note that this is a full time specifier and "T" does not need a "%" although it is on its own.
|'09:47:56'  (might not use colon in your locale) produced by {{Version badge 1}}<#LastDataReadT format=TT> [[File:Badge vMx.png]]<#LastDataReadT format=T>
|'09:47:56'  (might not use colon in your locale) produced by {{Version badge 1}}<#LastDataReadT format=TT> [[File:Badge vMx.png]]<#LastDataReadT format=T>
|-
|-
Line 501: Line 502:
|/
|/
|Displays the date separator character given by the Date Separator. It might not display a slash.
|Displays the date separator character given by the Date Separator. It might not display a slash.
| '/' for British locale
| '/' for typical British locale
|-
|-
|:
|:
5,838

edits