SphereCommunity
Get computer server time - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Get computer server time (/Thread-Get-computer-server-time)



Get computer server time - Rizz - 01-11-2013 04:38 AM

Is possibile to get the computer server time?
Serv.time is just the time since the server started or is something like juliand date or fraction of the day date?


RE: Get computer server time - Seron - 01-11-2013 05:08 AM

That would be serv.rtime

Quote:17-07-05, Furio
- Added SERV.RTIME.FORMAT. It takes as args a string like strftime()
(the list is here http://www.scit.wlv.ac.uk/cgi-bin/mansec?3C+strftime ).
e.g SERV.RTIME.FORMAT %d returns the number of the day.

The mentioned link doesnt work anymore but this list should do:
http://www.cplusplus.com/reference/ctime/strftime/