-
Display time using getUTCHours function
Hello
I downloaded one of the analog clock fla file and wants to change the time in it. Actually I want to display time of 4 different locations namely
New York
London
Karachi
Delhi
To do that I simply change the following line in my script according to the location
mydate.getUTCHours()
For example do display New York time I use
mydate.getUTCHours() - 10
To display London time I use
mydate.getUTCHours()
To display Karachi time I use
mydate.getUTCHours()+5
But when I use the following for Delhi it doesn't show the correct time
mydate.getUTCHours()+5.5
As you can see Delhi time is 5:30 hours ahead of GMT and it doesn't display the correct time when I use 5.5 or any other value with decimal like 6.5, 7.5 e.t.c.
Please tell me what do I do?
Last edited by aliweb; 03-01-2006 at 10:41 AM.
Reason: spelling mistake
-
Senior Member
here you go mate .. follow this tutorial
---------------------------------------
http://www.actionscript.org/tutorial..._5/index.shtml
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|