PebbleOS v4.48.0-75-g7416f78a1
Loading...
Searching...
No Matches
timezone.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include <pbl/util/time.h>

Data Structures

struct  pbl_tz
 Time zone. More...
 

Functions

void pbl_tz_set (const struct pbl_tz *tz)
 Set the system time zone.
 
int32_t pbl_tz_gmtoff (void)
 Get the offset of the time zone from UTC, without DST.
 
int32_t pbl_tz_dst_offset (void)
 Get the offset added during DST.
 
time_t pbl_tz_dst_start (void)
 Get the start of the current or next DST period.
 
bool pbl_tz_is_dst (time_t utc_time)
 Check whether DST applies at a given time.
 
void pbl_tz_abbr (char *buf, time_t utc_time)
 Get the time zone abbreviation in effect at a given time.
 
time_t pbl_tz_utc_to_local (time_t utc_time)
 Convert UTC time to local time.
 
time_t pbl_tz_local_to_utc (time_t local_time)
 Convert local time to UTC time.
 
struct pbl_tm * pbl_localtime_r (const time_t *timep, struct pbl_tm *result)
 Convert seconds since the epoch to broken-down local time.