New RTC-Library for the Due [Now inside the Library Manager too] Version 1.1.0
hello,
i have rewritten rtc-library [now version 1.1.0] due function-calls similar or more other rtc-librarys (like ds1307 or rtczero), , btw. add support timezone-library jchristensen kapyaar idea, cleaned code , grab lines rtczero , add more comments , new examples.
i hope can enjoy new version old 1 still available, wouldn't neat after this.
my impulse rewrite make easyer migrate or due.
link home of new lib, direct link.
now inside library manager too.
br
markus
sorry bad named zip.
i have rewritten rtc-library [now version 1.1.0] due function-calls similar or more other rtc-librarys (like ds1307 or rtczero), , btw. add support timezone-library jchristensen kapyaar idea, cleaned code , grab lines rtczero , add more comments , new examples.
i hope can enjoy new version old 1 still available, wouldn't neat after this.
my impulse rewrite make easyer migrate or due.
link home of new lib, direct link.
now inside library manager too.
br
markus
sorry bad named zip.
have checked , verified library returns time_t correctly unixtime?
here's problem i've encountered. i'm using rtc_clock library in data logger. i push collected data database , join sets of data based on unixtime stamps. i noticed there large time shift between data various boards. the due rtc library "rtc_clock.unixtime()" returns value 35 days future.!!!
here example comparison:
**** time: 19:19:27.406 date: 14/8/2016 fix: 1 quality: 2 location: 47xxxxxn, 12xxxxxw speed (knots): 0.01 angle: 17.08 altitude: 80.70 satellites: 7
gps unixtime: 46 1471202367 rtc_unixtime: 1474201121
if plug gps unixtime value of online converters time... correctly returns date 14/8/2016 , correct time (utc).
but rtc time value 1474201121 when converted returns data
http://www.unixtimestamp.com/index.php
1474201121
is equivalent to:
09/18/2016 @ 12:18pm (utc)
2016-09-18t12:18:41+00:00 in iso 8601
sun, 18 sep 2016 12:18:41 +0000 in rfc 822, 1036, 1123, 2822
if use rtc library pull hour, minute, seconds, day, month, year... resulting text appears reasonable - e.g. conversion internal data human values uses same algorthim ... conversion unixtime incorrect.
sunday, 18-sep-16 12:18:41 utc in rfc 2822
here's problem i've encountered. i'm using rtc_clock library in data logger. i push collected data database , join sets of data based on unixtime stamps. i noticed there large time shift between data various boards. the due rtc library "rtc_clock.unixtime()" returns value 35 days future.!!!
here example comparison:
**** time: 19:19:27.406 date: 14/8/2016 fix: 1 quality: 2 location: 47xxxxxn, 12xxxxxw speed (knots): 0.01 angle: 17.08 altitude: 80.70 satellites: 7
gps unixtime: 46 1471202367 rtc_unixtime: 1474201121
if plug gps unixtime value of online converters time... correctly returns date 14/8/2016 , correct time (utc).
but rtc time value 1474201121 when converted returns data
http://www.unixtimestamp.com/index.php
1474201121
is equivalent to:
09/18/2016 @ 12:18pm (utc)
2016-09-18t12:18:41+00:00 in iso 8601
sun, 18 sep 2016 12:18:41 +0000 in rfc 822, 1036, 1123, 2822
if use rtc library pull hour, minute, seconds, day, month, year... resulting text appears reasonable - e.g. conversion internal data human values uses same algorthim ... conversion unixtime incorrect.
sunday, 18-sep-16 12:18:41 utc in rfc 2822
Arduino Forum > Products > Arduino Due (Moderator: fabioc84) > New RTC-Library for the Due [Now inside the Library Manager too] Version 1.1.0
arduino
Comments
Post a Comment