Removed non working clock_* calls from example. Using vars for tz and dst.

This commit is contained in:
doragasu 2016-03-13 17:04:03 +01:00
parent 0482aebf7d
commit f14025b1c7
3 changed files with 62 additions and 37 deletions

View file

@ -39,6 +39,10 @@ void sntp_set_daylight(int day_light);
/// us is not null, it will be filled with the microseconds.
time_t sntp_get_rtc_time(int32_t *us);
/// Returns the time in seconds since Epoch. If tloc is not NULL, return
/// value is also stored in the memory pointed by tloc.
time_t time(time_t *tloc);
/// Set SNTP servers. Up to SNTP_NUM_SERVERS_SUPPORTED can be set.
/// Returns 0 if OK, less than 0 if error.
/// NOTE: This function must NOT be called before sntp_initialize().