ClockIdentifiers ClockIdentifiers ClockIdentifiers ClockIdentifiers Class

Definition

Contains the clock identifiers for the supported clocks, as static properties.

public : static class ClockIdentifiers
public static class ClockIdentifiers
Public Static Class ClockIdentifiers
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The identifiers returned by properties on this class are suitable for use anywhere a clock identifier is required.

Properties

TwelveHour TwelveHour TwelveHour TwelveHour

Gets the identifier for a 12-hour clock.

public : static Platform::String TwelveHour { get; }
public static string TwelveHour { get; }
Public Static ReadOnly Property TwelveHour As string
var string = Windows.Globalization.ClockIdentifiers.twelveHour;
Value
Platform::String string string string

The string "12HourClock", which is the identifier for a 12-hour clock.

TwentyFourHour TwentyFourHour TwentyFourHour TwentyFourHour

Gets the identifier for a 24-hour clock.

public : static Platform::String TwentyFourHour { get; }
public static string TwentyFourHour { get; }
Public Static ReadOnly Property TwentyFourHour As string
var string = Windows.Globalization.ClockIdentifiers.twentyFourHour;
Value
Platform::String string string string

The string "24HourClock", which is the identifier for a 24-hour clock.

See Also