timeserver

timeserver api contacts a timeserver computer in the world, and requests the current time This API was just a test of how modems worked, it really should not be used.

get(offset)Contact the timeserver, return what the timeserver sends back.
get(offset)Source

Contact the timeserver, return what the timeserver sends back. This function is dangerous and insecure as it simply returns whatever it receives in a modem_message event.

Parameters

  1. offset number Offset in hours for the timeserver to process.

Returns

  1. table Table containing: [1] contents of os.date() with the offset, [2] string with HH:MM, [3] string with HH:MM:SS.