Hour, Minute, and Second Format Pictures (Compact 2013)

3/28/2014

You can use the following formats to compose the format picture for a time string. The format picture specifies the way the time appears when output.

Format type

Description

h

Hours, without leading zeros for single-digits (12-hour clock).

hh

Hours, with leading zeros for single-digits (12-hour clock).

H

Hours, without leading zeros for single-digits (24-hour clock).

HH

Hours, with leading zeros for single-digits (24-hour clock).

Format type

Description

m

Minutes, without leading zeros for single-digits.

mm

Minutes, with leading zeros for single-digits.

Format type

Description

s

Seconds, without leading zeros for single-digits.

ss

Seconds, with leading zeros for single-digits.

Format type

Description

t

One-character time-marker string, which indicates whether the time represents "AM" or "PM."

Gg155255.note(en-us,WinEmbedded.80).gifNote:
Do not use this format for languages that the same string for both AM and PM. This format directs an application to take the first character from the time-marker string, which is defined by LOCALE_S1159 (AM) and LOCALE_S2359 (PM)

tt

Multicharacter time marker string.

Each format picture consists of a combination of one string from each of the format types.

Gg155255.note(en-us,WinEmbedded.80).gifNote:
In the format types, the letters "m", "s", and "t" must be lowercase. The letter "h" must be lowercase to denote the 12-hour clock or uppercase to denote the 24-hour clock.

Header

winnls.h

Library

Coreloc.lib

Show: