A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Display time using getUTCHours function

Threaded View

  1. #1
    Junior Member
    Join Date
    Mar 2006

    Display time using getUTCHours function


    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

    To do that I simply change the following line in my script according to the location

    For example do display New York time I use
    mydate.getUTCHours() - 10

    To display London time I use

    To display Karachi time I use

    But when I use the following for Delhi it doesn't show the correct time

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center