ClockIdentifiers ClockIdentifiers ClockIdentifiers ClockIdentifiers Class

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

Syntax

Declaration

public static class ClockIdentifierspublic static class ClockIdentifiersPublic Static Class ClockIdentifierspublic static class ClockIdentifiers

Remarks

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

Properties summary

Gets the identifier for a 12-hour clock.

Gets the identifier for a 24-hour clock.

Properties

  • TwelveHour
    TwelveHour
    TwelveHour
    TwelveHour

    Gets the identifier for a 12-hour clock.

    public static string TwelveHour { get; }public static string TwelveHour { get; }Public Static ReadOnly Property TwelveHour As stringpublic static string TwelveHour { get; }

    Property Value

    • 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 string TwentyFourHour { get; }public static string TwentyFourHour { get; }Public Static ReadOnly Property TwentyFourHour As stringpublic static string TwentyFourHour { get; }

    Property Value

    • string
      string
      string
      string

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Globalization.dll