Loading...
Searching...
No Matches
zone_setting.h File Reference

Reads a time zone setting the way the phone sends it, the minutes ahead of UTC then a comma and the place's name, as in "60,London". An empty setting means no zone is picked, which is what the phone sends once the wearer clears the picker. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Functions

bool zone_setting_is_set (const char *value)
 Whether the setting holds a zone at all.
int16_t zone_setting_offset (const char *value)
 How many minutes the zone is ahead of UTC, negative for one behind.
const char * zone_setting_label (const char *value)
 The place's name, everything after the first comma.

Detailed Description

Reads a time zone setting the way the phone sends it, the minutes ahead of UTC then a comma and the place's name, as in "60,London". An empty setting means no zone is picked, which is what the phone sends once the wearer clears the picker.