Convert to Unix time

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
mgennip
Posts: 4
Joined: Wed Jul 07, 2021 2:55 pm
Contact:

Convert to Unix time

Post 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.

User avatar
Bachman
Posts: 116
Joined: Sun Sep 07, 2014 11:37 am
Location: Hungary
Has thanked: 9 times
Been thanked: 53 times
Contact:

Re: Convert to Unix time

Post 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.

Post Reply