Author Topic: rtc_clock -> time_t  (Read 3605 times)

Twistit

  • Newbie
  • *
  • Posts: 19
rtc_clock -> time_t
« on: October 18, 2014, 04:04:35 am »
I'm using the rtc_clock.h library but also using the Time.h library and i need to setSyncProvider.
However that requires an Time_T responce and doesnt work like rtc.get sadly.
How do i work around this?

error: no matches converting function 'unixtime' to type 'time_t (*)()'
« Last Edit: October 18, 2014, 04:14:58 am by Twistit »

Twistit

  • Newbie
  • *
  • Posts: 19
Re: rtc_clock -> time_t
« Reply #1 on: October 18, 2014, 04:37:27 am »
Nevermind used:
rtc_clock.get_time(&hh,&mm,&ss);
 rtc_clock.get_date(&dow,&dd,&mon,&yyyy);
 setTime(hh,mm,ss,dd,mon,yyyy);