Search Locate Previous Next Contents

TimeFormat – picture specification

When the X-axis is set to style ‘Time’ or ‘Date,Time’ the time portion of the axis labels may be formatted with a simple picture format such as:

chSet 'tpic' 'HH:mm-ss'

To label the tickmarks ‘14:12-34’ and so on.

The time specification in detail
The following table is taken from the Microsoft documentation for the GetTimeFormat API call, and is common to all Windows applications which use it:
PictureMeaning
hHours with no leading zero for single-digit hours; 12-hour clock
hhHours with leading zero for single-digit hours; 12-hour clock
HHours with no leading zero for single-digit hours; 24-hour clock
HHHours with leading zero for single-digit hours; 24-hour clock
mMinutes with no leading zero for single-digit minutes
mmMinutes with leading zero for single-digit minutes
sSeconds with no leading zero for single-digit seconds
ssSeconds with leading zero for single-digit seconds
tOne character time marker string, such as A or P
ttMulticharacter time marker string, such as AM or PM

If you use spaces to separate the elements in the format string, these spaces will appear in the same location in the output string. The letters must be in uppercase or lowercase as shown (for example, “ss”, not “SS”). Characters in the format string that are enclosed in single quotation marks will appear in the same location and unchanged in the output string.

See also ...
DateFormat – picture specification
Locale – for formatted dates or times


Continue to: Tips – adding popup tips to data values
© Copyright Causeway Graphical Systems Ltd 2003