Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    world clock script?

    Can anyone reccomned a free world time clock script so I can show the time in Queensland, Australia on my website.

    As simple and intuitive as possible would be good, becasue I have a very limited grasp of server side programing

    thanks.

  • #2
    New to the CF scene
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey, this is my first message to post . anyway, i use this code on my website to display the time:

    <?
    $year = gmdate ( "Y", mktime (date( "H")+10,date( "i"),date( "s"),date( "m"),date( "d"),date( "Y")));
    $mnt = gmdate ( "F", mktime (date( "H")+10,date( "i"),date( "s"),date( "m"),date( "d"),date( "Y")));
    $day = gmdate ( "d", mktime (date( "H")+10,date( "i"),date( "s"),date( "m"),date( "d"),date( "Y")));
    $H = gmdate ( "H", mktime (date( "H")+10,date( "i"),date( "s"),date( "m"),date( "d"),date( "Y")));
    $minutes = date ( "i");
    ?>

    and then you put this script somewhere:

    <? print( "$day of $mnt, $year, $H:$minutes"); ?>

    i live in australia too so it will display the time

    please check out my website at www.unipets.net


  •  

    Posting Permissions

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