clintonG said:
Arjen said:
We have to use client-side date functions that can be found at the
JavaScript FAQ [1] which is one of the best resources on the planet.
It would be a lot more useful to use .NET to build web services that could
aggregate the collection of times from each remote location and display the
collection as a series of clockfaces that could popUp from the system tray.
Anybody in the company, or any business partner the application would be
deployed to could immediately determine the local time of a remote office or
collaborating business partner or customer. I'm actually surprised I haven't
seen something like this yet.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL
http://metromilwaukee.com/
URL
http://clintongallagher.metromilwaukee.com/
[1]
http://www.irt.org/script/date.htm
That is actually a rather nifty idea, but I think he is trying to say he
wants it in a web page, not as a series of clocks in the system tray.
What I would do in this case (assuming an on-the-web page solution), is
write variables for each office (in JavaScript) that describe their time
offset from the web server, and then create JavaScript clocks that use
the offsets to determine what time these locations have relative to the
server. As well, the current server time would have to be passed on to
the JavaScript as well (via ASP.NET writing a variable into the JS). You
would not want to use the time on a user's own computer, because a
user's computer might actually be off in terms of its own actual clock
(not everyone uses XP, and not every XP machine may be updating its
clock across the 'net). The only thing that might trip him up is
daylight savings time. Not every country implements it, so if his server
does but some of his offices are in places where they don't, then he can
have a time dysfunction of an hour.
....Geshel
--
**********************************************************************
My reply-to is an automatically monitored spam honeypot. Do not use it
unless you want to be blacklisted by SpamCop. Please reply to my first
name at my last name dot org.
**********************************************************************