This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
roger109z's profile picture

Unix time

Started by roger109z, 22 February 2018 - 10:50 PM
roger109z #1
Posted 22 February 2018 - 11:50 PM
what's the argument to get unix time from os.time?
Thanks in advance
Anavrins #2
Posted 23 February 2018 - 04:11 PM
os.epoch("utc")
will give you the unix time in milliseconds, divide by 1000 for seconds.
Edited on 23 February 2018 - 03:11 PM
roger109z #3
Posted 24 February 2018 - 01:23 AM
Thank you so much