A time interface class. This class replicates the normal time functions, but goes a couple of steps further. mbed library 82 and prior has a defective gmtime function. Also, this class enables access to setting the time, and adjusting the accuracy of the RTC.

Dependencies:   CalendarPage

Dependents:   CI-data-logger-server WattEye X10Svr SSDP_Server

Embed: (wiki syntax)

« Back to documentation index

tm_ex Struct Reference

tm_ex Struct Reference

The tm_ex structure is patterned after the traditional tm struct, however it adds an element - the time zone offset in minutes. More...

#include <TimeInterface.h>

Data Fields

int tm_sec
 ! seconds, 0 to 59.
int tm_min
 ! minutes, 0 to 59.
int tm_hour
 ! hours, 0 to 23.
int tm_mday
 ! monthday 1 to 31.
int tm_mon
 ! month 0 to 11.
int tm_year
 ! years since 1900.
int tm_wday
 ! days since sunday 0 to 6.
int tm_yday
 ! days since 1 Jan 0 to 365.
int tm_isdst
 ! is daylight savings time.
int tm_tzo_min
 ! localtime zone offset in minutes (_ex element)

Detailed Description

The tm_ex structure is patterned after the traditional tm struct, however it adds an element - the time zone offset in minutes.

From this, it is then readily able to create a "local time" instead of simply a UTC time.

Definition at line 25 of file TimeInterface.h.


Field Documentation

int tm_hour

! hours, 0 to 23.

Definition at line 29 of file TimeInterface.h.

int tm_isdst

! is daylight savings time.

Definition at line 35 of file TimeInterface.h.

int tm_mday

! monthday 1 to 31.

Definition at line 30 of file TimeInterface.h.

int tm_min

! minutes, 0 to 59.

Definition at line 28 of file TimeInterface.h.

int tm_mon

! month 0 to 11.

Definition at line 31 of file TimeInterface.h.

int tm_sec

! seconds, 0 to 59.

Definition at line 27 of file TimeInterface.h.

! localtime zone offset in minutes (_ex element)

Definition at line 36 of file TimeInterface.h.

int tm_wday

! days since sunday 0 to 6.

Definition at line 33 of file TimeInterface.h.

int tm_yday

! days since 1 Jan 0 to 365.

Definition at line 34 of file TimeInterface.h.

int tm_year

! years since 1900.

Definition at line 32 of file TimeInterface.h.