Professional Documents
Culture Documents
básico
Variables globales
SEC_TIMER, MS_TIMER y TICK_TIMER (1/1024 segundos) son
variables shared del sistema.
struct tm {
char tm_sec; // seconds 0-59
char tm_min; // 0-59
char tm_hour; // 0-23
char tm_mday; // 1-31
char tm_mon; // 1-12
char tm_year; // 80-147 (1980-2047)
char tm_wday; // 0-6 0==Sunday
};
Funciones RTC
tiempo
read_rtc( void );
Inicio
SEC_TIMER
Funciones RTC
tiempo void write_rtc( unsigned long int time );
struct tm
int tm_wr( struct tm *t );
RTC
SEC_TIMER
Funciones RTC
tiempo
SEC_TIMER
Funciones RTC
Description
This function returns the timezone offset as known by the library.
The timezone is obtained from the following sources, in order of
preference:
1. The DHCP server. This can only be used if the TCP/IP stack is in
use, and USE_DHCP is defined.
2. The TIMEZONE macro. This should be defined by the program
to an _hour_ offset - may be floating point.