Contents

CLKTimeTextProvider

A formatted time value.

Declaration

class CLKTimeTextProvider

Mentioned in

Overview

This provider supports time values in either the 24-hour or 12-hour format and takes into account the user’s region and locale settings. As needed, the provider automatically shortens the string to fit the available space.

When formatting the time, the time text provider drops the morning/evening indicator if it can’t fit the entire time value. For example, a provider configured to display the time 10:09AM in the English-US locale would remove elements as follows until it encountered a string that fit the available space:

  • 10:09AM

  • 10:09

Topics

Creating a Text Provider

Getting the Time Information

See Also

Text providers