Functions, data structures and other things related to wall clock time.
This module contains utilities to get the current time and create strings with formatted dates and times.
tick_info
field of PebbleAppHandlers. void clock_copy_time_string | ( | char * | buffer, |
uint8_t | size | ||
) |
Copies a time string into the buffer, formatted according to the user's time display preferences (such as 12h/24h time). Example results: "7:30" or "15:00".
[out] | buffer | A pointer to the buffer to copy the time string into |
size | The maximum size of buffer |
bool clock_is_24h_style | ( | void | ) |
Gets the user's 12/24h clock style preference.
true
if the user prefers 24h-style time display or false
if the user prefers 12h-style time display. enum TimeUnits |
Time unit flags that can be used to create a bitmask for use in PebbleAppTickInfo.