- Bronze, 100 points or more
A further saga to my email script that I am writing. I am trying to read the time from the system and include this into an email that is sent when a server goes off line.
Have found the following code seems to do the right thing:
set SysTime [ clock format [ clock scan "8 hours" -base [clock seconds] ] -format "%x %X" ]
Certainly this returns the time and date, but it returns a time that is approximate 4 minutes earlier than the system time.
09:02:08.195 WST Thu Apr 19 2007
SysTime value: APR 19 2007 08:58:25
Has anybody managed to get the time successfully and is there a better way?