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_messageevent.Parameters
- offset
numberOffset in hours for the timeserver to process.
Returns
tableTable containing: [1] contents of os.date() with the offset, [2] string with HH:MM, [3] string with HH:MM:SS.
- offset