time_date Struct Reference

Time and Date structure.

#include <sl_sleeptimer.h>

Data Fields

uint8_t sec
Second (0-59)
uint8_t min
Minute of month (0-59)
uint8_t hour
Hour (0-23)
uint8_t month_day
Day of month (1-31)
sl_sleeptimer_month_t month
Month (0-11)
uint16_t year
Year, based on a 0 Epoch or a 1900 Epoch.
sl_sleeptimer_weekDay_t day_of_week
Day of week (0-6)
uint16_t day_of_year
Day of year (1-366)
sl_sleeptimer_time_zone_offset_t time_zone
Offset, in seconds, from UTC.

Time and Date structure.

Field Documentation

sec

uint8_t time_date::sec

Second (0-59)

min

uint8_t time_date::min

Minute of month (0-59)

hour

uint8_t time_date::hour

Hour (0-23)

month_day

uint8_t time_date::month_day

Day of month (1-31)

month

sl_sleeptimer_month_t time_date::month

Month (0-11)

year

uint16_t time_date::year

Year, based on a 0 Epoch or a 1900 Epoch.

day_of_week

sl_sleeptimer_weekDay_t time_date::day_of_week

Day of week (0-6)

day_of_year

uint16_t time_date::day_of_year

Day of year (1-366)

time_zone

Offset, in seconds, from UTC.