Page 1 of 1

Convert to Unix time

Posted: Wed Jul 07, 2021 3:01 pm
by mgennip
Is there a way to convert time (from a RTC like DS1307) to a Unix Time?
(total amount of seconds from 00:00:00 1-1-1970 to now)

As far is i can see in Flowcode 8 there is not an option. I am only gettin g human readable format for year, month, day, hour, minutes and seconds.

Re: Convert to Unix time

Posted: Wed Jul 07, 2021 7:08 pm
by Bachman
Get the UNIX time for 2021. jan. 01. ; 0:00:00 from here: https://www.unixtimestamp.com/

Count completed days, completed hours, minutes and seconds. Additions, done.