Go Down

Topic: ??Code to convert input time and date to epoch time?? (Read 3148 times) previous topic - next topic

88

Anyone know how to convert a time and date inputed by a user to epoch time?? (seconds since midnight Jan 1 1970)
that would be functional with arduino?

Si

This should help:

http://www.arduino.cc/playground/Code/Time

Code: [Select]
now();             // returns the current time as seconds since Jan 1 1970
--
I write books about Arduino and Electronics: http://simonmonk.org

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy