Loading...
Searching...
No Matches
WeatherClock Struct Reference

The watch's clock at the moment a message lands, broken apart. More...

#include <weather_reading.h>

Data Fields

time_t now
 The time the message landed.
time_t day_start
 Local midnight of today.
uint8_t hour
 The local hour, 0 to 23.
uint8_t minute
 The local minute, 0 to 59.
uint8_t second
 The local second, 0 to 59.
uint8_t wday
 The local weekday, 0 for Sunday.

Detailed Description

The watch's clock at the moment a message lands, broken apart.

Taken apart by the store, since breaking a time_t apart means localtime and the SDK owns that. The midnight has to be the SDK's own, from time_start_of_today, because working it back from the hour and minute is an hour out on a day the clocks change.


The documentation for this struct was generated from the following file: