Getting a date value without using process date process.h
OtisHarrison24 opened this issue · 1 comments
OtisHarrison24 commented
Is there anyway to get a timestamp to pass from the aws iot sdk to pass into my json file?
Thanks
liuszeng commented
Hi @OtisHarrison24 ,
Thank you very much for your interest in AWS IoT Arduino Yun SDK.
If you are looking for getting the timestamp from Arduino board instead of the embedded Linux, you can try out the following library:
http://playground.arduino.cc/Code/Time
now() should give you a timestamp in seconds since Jan. 1, 1970.
Thanks,
Liusu