48 users online (1 members and 47 guests)  

Thread: Time Zones Code


  Results 1 to 7 of 7

Related

  1. Replies: 0
  2. Time sorting    Forum: Javascript Forum
    Replies: 1
  3. Ignore code and link greeting note code    Forum: HTML Forum
    Replies: 3
  4. help with time and max()    Forum: PHP Forum
    Replies: 1
  5. down time    Forum: One Stop Domains Forum
    Replies: 1
  1. #1
    RainHawk's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2003
    Posts
    2

    Time Zones Code

    Hi all, I'm looking for a code which displays all types of time zones all over the world with the current my and their time like you know NYC-8.00, Chi-7.00, LA-5.00 while showing my local time (updated), anyone know sucha code?
    Thank you!
    -RH-

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    There is no HTML code to do this. You are looking at either JavaScript or a serverside language like asp, php etc.

    Which would you prefer to use?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    RainHawk's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2003
    Posts
    2
    would it be ok fome me to take a look at both?

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Of course thats okay. Firstly, this link points to a superb example of TimeZone JavaScript, you will need to 'View Source' to see how they have done it -

    http://jorourke.esmartweb.com/timezones/timezones.html

    And heres an example of displaying 25 timezones using php -

    http://members.lycos.co.uk/aplomb/scriptinfo.php?script=worldtime
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    That first one has possibilities for some of my sites - will have to work on it but it will eventually be included at http://secret.jamrent.com - among other sites.

    Is there a site that actually uses the 2nd one so one could see its output? (That code also helps one understand more the .php include process.)

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    no demo for it. Just paste the source into a .php file, upload it and have a look thru the browser.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #7
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    The problem, of course, is that my web host (50megs) does not recognize .php files - unless they've changed policies.



Tags for this Thread