Webtags (preserving history): Difference between revisions

m
m (→‎List of allowed modifiers: Added % in front of H on its own)
Line 94: Line 94:


=== List of allowed modifiers ===
=== List of allowed modifiers ===
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 italics in 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).
 
In some rows of table square brackets [] indicate optional items, just to make it clearer how items can be combined in a single output parameter.
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
!style="width:150px" | Delphi Specifier for Cumulus 1.9.x
!style="width:150px" | {{Version badge 1}}Delphi Specifier for Cumulus 1.9.x
!style="width:150px" | .NET Specifier for Cumulus MX
!style="width:150px" | [[File:Badge vMx.png]].NET Specifier for Cumulus MX
!style="width:600px" | Displays
!style="width:600px" | Displays
!style="width:600px" | Example
|-
|-
|c
|c
|G
|G
|Displays the date using the format given by the Short Date format, followed by the time using the format given by the Long Time format. The time is not displayed in Cumulus 1 if the date-time value indicates midnight precisely.
|Displays the date using the format given by the Short Date format, followed by the time using the format given by the Long Time format. The time is not displayed in Cumulus 1 if the date-time value indicates midnight precisely.
|'22/03/2019 09:47:25' produced by {{Version badge 1}}<#time format=c>[[File:Badge vMx.png]]<#time format=G>
|-
|-
|d
|d
|%d
|%d
|Displays the day as a number without a leading zero (1-31). Note that Cumulus MX requires a ' ' (space), '%' or other modifier to be included, as 'd' on its own returns full 'short date').
|Displays the day as a number without a leading zero (1-31). [[File:Badge vMx.png]]Note that Cumulus MX requires a ' ' (space), '%' or other modifier to be included, as 'd' on its own returns full 'short date').
|27 produced by {{Version badge 1}}<#metdate format="d">[[File:Badge vMx.png]]<#metdate format="%d">
|-
|-
|dd
|dd
|dd
|dd
|Displays the day as a number with a leading zero (01-31).
|Displays the day as a number with a leading zero (01-31).
|07 produced by <#metdate format="dd">
|-
|-
|ddd
|ddd
|ddd
|ddd
|Displays the day as an abbreviation (Sun-Sat) using the strings appropriate to the Locale.
|Displays the day as an abbreviation (Sun-Sat) using the strings appropriate to the Locale.
|'Wed' produced by <#metdate format="ddd"> (English locale)
|-
|-
|dddd
|dddd
|dddd
|dddd
|Displays the day as a full name (Sunday-Saturday) using the strings appropriate to the Locale.
|Displays the day as a full name (Sunday-Saturday) using the strings appropriate to the Locale.
|'Friday' produced by <#metdate format="dddd"> (English locale)
|-
|-
|ddddd
|ddddd
|d (as single character format)
|d (as single character format)
|Displays the date using the format given by the Short Date format.
|Displays the date using the format given by the Short Date format.
|
|-
|-
|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.
|
|-
|-
|m
|m
Line 134: Line 144:
*Cumulus 1.x.y:If the 'm' specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
*Cumulus 1.x.y:If the 'm' specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
*Cumulus MX: Note that including a ' ' (space) or '%' before the M makes it a custom modifier e.g. '7' is returned for July as any initial zero is suppressed. ('M' on its own returns both Month and Day according to local format e.g. 22 July).
*Cumulus MX: Note that including a ' ' (space) or '%' before the M makes it a custom modifier e.g. '7' is returned for July as any initial zero is suppressed. ('M' on its own returns both Month and Day according to local format e.g. 22 July).
|
|-
|-
|MM (or ''mm'')
|MM (or ''mm'')
|MM
|MM
|Displays the month as a number with a leading zero (01-12).  
|Displays the month as a number with a leading zero (01-12).  
*Cumulus 1.x.y:If the 'm' specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
*Cumulus 1.x.y:If the 'm' or 'M' specifier immediately follows an h, H, HH, or hh specifier, the minute rather than the month is displayed.
|-
|-
|MMM (or ''mmm'')
|MMM (or ''mmm'')
Line 156: Line 167:
|Displays the year as a four-digit number (0000-9999).
|Displays the year as a four-digit number (0000-9999).
|-
|-
|h (''am/pm'')
|h [''am/pm'']
|h [''tt'']
|h [''tt'']
|Displays the hour (12 hour clock) without a leading zero (1-12) followed by 2 digit minutes [optionally in combination with am/pm]. For Cumulus 1 there are other formats for am/pm shown later in this table
|Displays the hour (12 hour clock) without a leading zero (1-12) followed by 2 digit minutes [optionally in combination with am/pm]. {{Version badge 1}}For Cumulus 1 there are other formats for am/pm shown later in this table
|-
|-
|h:nn (''am/pm'')
|h:mm (or 'h:nn') [''am/pm'']
|h:mm [''tt'']
|h:mm [''tt'']
|Displays the hour (12 hour clock) without a leading zero (1-12) followed by 2 digit minutes [optionally in combination with am/pm]. For Cumulus 1 there are other formats for am/pm shown later in this table
|Displays the hour (12 hour clock) without a leading zero (1-12) followed by 2 digit minutes [optionally in combination with am/pm]. {{Version badge 1}}For Cumulus 1, the minutes can be represented by 'mm' only when in combination with 'h', and there are other formats for am/pm shown later in this table
|-
|-
|H
|H
|%H
|%H
|Displays the hour using 24 hour clock without a leading zero (0-23). Note that % is only needed when H is on its own.
|Displays the hour using 24 hour clock without a leading zero (0-23). [[File:Badge vMx.png]]Note that % is only needed when H is on its own.
|-
|-
|H:nn
|H:mm (or 'H:nn')
|H:mm
|H:mm
|Displays the hour using 24 hour clock without a leading zero (0-23) followed by 2 digit minutes. Note that % is not needed when H is not on its own.
|Displays the hour using 24 hour clock without a leading zero (0-23) followed by 2 digit minutes. [[File:Badge vMx.png]]Note that % is not needed when H is not on its own.
|-
|-
|hh (''am/pm'')
|hh (''am/pm'')
|hh [''tt'']
|hh [''tt'']
|Displays the hour (12 hour clock) with a leading zero (01-12) [optionally in combination with am/pm]. For Cumulus 1 there are other formats for am/pm shown later in this table
|Displays the hour (12 hour clock) with a leading zero (01-12) [optionally in combination with am/pm]. {{Version badge 1}}For Cumulus 1 there are other formats for am/pm shown later in this table
|-
|-
|hh:nn (''am/pm'')
|hh:mm (or 'hh:nn') [''am/pm'']
|hh:mm [''tt'']
|hh:mm [''tt'']
|Displays the hour (12 hour clock) with a leading zero (01-12) followed by 2 digit minutes [optionally in combination with am/pm]. For Cumulus 1 there are other formats for am/pm shown later in this table
|Displays the hour (12 hour clock) with a leading zero (01-12) followed by 2 digit minutes [optionally in combination with am/pm]. {{Version badge 1}}For Cumulus 1, the minutes can be represented by 'mm' only when in combination with 'h', and there are other formats for am/pm shown later in this table
|-
|-
|HH (or ''hh'')
|HH (or ''hh'')
Line 222: Line 233:
|am/pm
|am/pm
|tt
|tt
|Uses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hour from midnight until before noon, and 'pm' for any hour from noon onwards.
|Uses the 12-hour clock for the preceding h or H specifier, and displays 'am' for any hour from midnight until before noon, and 'pm' for any hour from noon onwards.


The am/pm specifier for Cumulus 1 can use lower, upper, or mixed case, and the result is displayed accordingly.
{{Version badge 1}}The am/pm specifier for Cumulus 1 can use lower, upper, or mixed case, and the result is displayed accordingly.
|-
|-
|a/p
|a/p
|t
|t
|Uses the 12-hour clock for the preceding h or hh specifier, and displays 'a' for any hour from midnight until before noon, and 'p' for noon or any hour after noon. The a/p specifier can use lower, upper, or mixed case, and the result is displayed accordingly.
|Uses the 12-hour clock for the preceding h or H specifier, and displays 'a' for any hour from midnight until before noon, and 'p' for noon or any hour after noon. The a/p specifier can use lower, upper, or mixed case, and the result is displayed accordingly.
|-
|-
|ampm
|ampm
|(see above for 12 hour formats)
|(see above for 12 hour formats)
|Uses the 12-hour clock for the preceding h or hh specifier, and displays the contents of the Windows AM string for midnight until any hour before noon, and the contents of the Windows PM string for noon or any hour after noon before midnight.
|Uses the 12-hour clock for the preceding h or H specifier, and displays the contents of the Windows AM string for midnight until any hour before noon, and the contents of the Windows PM string for noon or any hour after noon before midnight.
|-
|-
|/
|/
5,838

edits