www.webdeveloper.com
Results 1 to 2 of 2

Thread: Adding time to my site

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    10

    Exclamation Adding time to my site

    Hey.

    I'm trying to add the time to my site.
    the codes so far I've found don't run, only update on reload.

    I know there are codes to get the time from the browser,
    but for this site I want to include the UK time as well as the Australia time.

    How would I go about do this?

    Cheers
    Ben!

  2. #2
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    The "updating" has to be done on the client side... so javascript is a good option.
    Next thing is to decide if you want a "digital" clock or clock with hands.
    Try searching for "javascript clock" to find some examples.
    Flash is also an option... there are several good .swf clocks available also.

    For the dual timezones... either get it from the client machine with the local TZ and do the offsets for Oz and UK or you can base it on the server time and do the TZ offset.
    Last edited by opifex; 11-23-2009 at 12:38 AM.
    ...but stupidity is terminal.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles