PDA

View Full Version : World date and time



dragonwill
September 16th, 2003, 12:59 AM
He everyone.

What I am trying to do is this:

I have a map and want to be able to show the date and time on a few individual parts of the map. The date and time will display when the users roll-over the area of the map. There are about 10 different areas. Can someone tell me if that's possible.

APDesign
September 16th, 2003, 02:33 PM
It would be hard because flash gets its time from the system timer, so it would be different times in different timezones... and I'm not sure if there is a way to see what timezone someone is in, so.... /shrug

lostinbeta
September 16th, 2003, 02:45 PM
You can use things like getUTCHours(), getUTCMinutes(), etc. It works just like getting the system time, but UTC returns universal time so all you have to do is subtract the timezone offset from the UTC value to get the time in that area.