/time

Time service in Go for IoT devices that can't use NTP.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Time service

Return in JSON RFC4627 format UTC time as Unix time and RFC3339.

Sample request:

curl -X GET -i localhost:8123

Sample response:

{"unixtime":1596787417,"rfc3339":"2020-08-07T08:03:37Z"}