
一、Direct operation
linux: ./time-res-linux
windows: ./time-res-win.exe
The default port： 9090
Username and password are not verified by default
The current folder is default when the resource is served

二、Specify the port and verify the username and password to run
linux: ./time-res-linux -p 9090 -r ./ -user admin -pass admin
windows: ./time-res-win.exe -p 9090 -r ./ -user admin -pass admin

-p Port
-r Resources path
-user Authenticated username
-pass Authenticated password

三、Time Service

Gets the server time in seconds：
http://192.168.0.190:9090/gettime
Return："$unix second$"
Example："$1675823694$"

http://192.168.0.190:9090/second
Return："$unix second$"
Example："1675823694"

Gets the server time in RFC3999 format：
http://192.168.0.190:9090/getsecstr
Return sample："2023-02-07T21:35:55-05:00"
Return sample："2023-02-08T10:35:35+08:00"

Gets the UTC time in RFC3339 format：
http://192.168.0.190:9090/getutcsecstr
Return sample："2023-02-08T02:35:41Z"

四、Resource Service
1. Download the current running file
   http://192.168.0.190:9090/time-res-win.exe

Useless username password verification download
wget http://192.168.0.190:9090/time-res-win.exe

If you use username admin password admin to verify, wget download sample：
wget http://admin:admin@192.168.0.190:9090/time-res-win.exe

2. To download other files, simply put the files in the current directory.
   If you specify the -r parameter, you can put it in the corresponding folder




