Clock Display Elements

PDFPrint

Clock Format Elements

The Custom Format Option within each clock allows the user to define a format string for a specific clock. A format string is made up of one or more display elements that represent a piece of information such as the seconds or hour.

For example, "HH:mm would display "18:34" as HH would be replaced by the hour in 2-digit 24-hour format and mm would be replaced by the minute as 2 digits.

The display elements reflect the Regional Options of Windows, if you are using a German version of Windows, then German weekdays and month names will be displayed.

The display elements are grouped as follows:

Date Elements

All the format elements are case sensitive

 

Function

Element

Day (1-7) d
Day (2 digits 01-07) dd
Day name (abbreviated) ddd
Day name (full) dddd
Month (1-12) M
Month (2 digits 01-12) MM
Month name (abbreviated) MMM
Month name (full) MMMM
Year (1 or 2 digits)
y
Year (2 digits) yy
Year (4 digits) yyyy
Week number w
Week number (2 digits 01-52) ww
Day of year D
Day of year (3 digits) DD

 

Back to the top

Time Elements

All the format elements are case sensitive

 

Function

Element

Hour (1-12) h
Hour (01-12) hh
Hour (0-23) H
Hour (00-23) HH
Minute m
Minute (2 digit) mm
Second s
Second (2 digit) ss
A/P (AM/PM Symbol) t
AM/PM tt
Timezone bias (UTC+/-) shows the current bias including DST adjustments u
Timezone bias(GMT+/-) short form
Taken from timezone name data and does not show DTS adjustment. Retained for compatibility with earlier versions.
z
Timezone bias(GMT+/-) long form
Taken from timezone name data and does not show DTS adjustments. Retained for compatibility with earlier versions.
zz
Standard/Daylight savings name (currently in force in that time zone) zzz
Timezone Standard time name ZZ
Clock Name (As set in Configure Clock)
N

 

Back to the top

Literal Text

Any text that is in a Custom format that is not a format element will be displayed as part of the clock, this can lead to some strange results. You can ensure that any text that needs to be displayed is handled correctly by enclosing it in single quotation marks (‘ ’).

Example:

Say you wanted to display “today is Wednesday” as part of the clock, the result, with and without quotation marks is:

 

Format Display
today is MMMM Po18ay i44 Wednesday
’today is ‘MMMM today is Wednesday

 

In the first example, Chronos Clock translates the “t” in “today” as the format element representing “A/P”, the “d” is translated into the day number and the “s” into seconds. In the second example, the portion within single quotes is displayed correctly as entered.

Back to the top

Special Display Elements

All the format elements are case sensitive

A clock display can be formatted to display over more than one line, by inserting a "|" vertical bar character. This is translated as a Line Break; anything after the vertical bar will be displayed on the next line.

If two similar display elements must be placed together, a hidden separator element "~" (tilde) must be used to separate them and avoid mistranslations. This element is ignored except as a separator. For example, the format "dddd" produces the full weekday name "Thursday", but with a hidden separator, "d~ddd", it produces "10Thu".

© 2009-2012 Rainbow Innovations All rights reserved.
Microsoft, Windows, and Internet Explorer (IE) are registered trademarks of Microsoft Corporation
All other brands and product names may be trademarks or registered trademarks of their respective owners.
Please send any questions or comments about this web site to Rainbow Innovations