Unix timestamp

Posted on
Sun Mar 03, 2019 11:37 am
davinci offline

Unix timestamp

How can I get a Unix timestamp from this: 2019-03-03 18:16:15

Thanks

Posted on
Sun Mar 03, 2019 12:21 pm
davinci offline

Re: Unix timestamp

For further reference I answer my own question:

Code: Select all
import time
timeOK = indigo.devices[12345678]. lastChanged
unix_timestamp = time.mktime(timeOK.timetuple())

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests

cron