Get time zone info for a network computer.
-
Can anyone tell me if I can get the time zone info for a computer on a local network? Please tell me if this is possible. Thanks, ~LizardWiz()
Is
NetRemoteTOD()
of any help?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Is
NetRemoteTOD()
of any help?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Hmmmmm. It is a start I guess. But the structure only seems to return the current bias of the time zone from GMT time, I don't really know if I am daylight savings time or not. I guess I can get the current date of the machine in GMT time (which is what that function seems to return), then convert it to a local time for my machine, then determine if its daylight savings time or not, then determine the appropriate time zone based on that bias amount... I am lucky I guess that we are only looking at Time Zones in the US... But won't Arizona get messed up in daylight savings time? Anyhow thanks for your help. If you have a better idea please let me know. ~LizardWiz()
-
Hmmmmm. It is a start I guess. But the structure only seems to return the current bias of the time zone from GMT time, I don't really know if I am daylight savings time or not. I guess I can get the current date of the machine in GMT time (which is what that function seems to return), then convert it to a local time for my machine, then determine if its daylight savings time or not, then determine the appropriate time zone based on that bias amount... I am lucky I guess that we are only looking at Time Zones in the US... But won't Arizona get messed up in daylight savings time? Anyhow thanks for your help. If you have a better idea please let me know. ~LizardWiz()
LizardWiz wrote: It is a start I guess. But the structure only seems to return the current bias of the time zone from GMT time... Which is what you initially asked for. Determining DST on a remote computer is a different issue. Do you have access to the remote server? If so, could you create a little application (two dozen lines of code) that listened to a particular port, and when a request came in on that port, send back a reply indicating whether DST is in effect?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen