#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Ontario, Canada
    Posts
    498
    Rep Power
    18
    Can anyone give me some pointers on writing a function that does a count down? I've got the first half down pat, but I'm not sure how to go about making it display what i want it to.

    Example (the part I require help with is in bold):

    Christmas is in 4 months, 2 days, 13 hrs, 19 mins, 23 secs.

    I can easily obtain the timestamp I need for the function, but converting it is a problem. Any help would be appreciated.



    ------------------
    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Portland, Or USA
    Posts
    3
    Rep Power
    0
    http://www.ai.eecs.uic.edu/~peterc/cvc/timer/

    go to this site...well documented java script you can splice in.
  4. #3
  5. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    see the following links..you can find out a solution very easily..
    http://www.phpbuilder.com/manual/function.mktime.php
    http://www.phpbuilder.com/columns/akent20000610.php3

    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. Uploading Files
    By vivekjain in forum ASP Programming
    Replies: 0
    Last Post: February 17th, 2004, 12:21 AM
  2. mail() ... pulling my freakin hair out !!!
    By grfxguru in forum PHP Development
    Replies: 13
    Last Post: January 29th, 2004, 04:54 AM
  3. Pulling out variables from a superglobal via function
    By voice220 in forum PHP Development
    Replies: 11
    Last Post: January 27th, 2004, 11:52 AM
  4. Help with Image Submission!! Pulling out hair..
    By SubFreeze in forum PHP Development
    Replies: 1
    Last Post: December 28th, 2003, 05:17 AM
  5. Code Benchmarking Tests
    By infamous41md in forum C Programming
    Replies: 4
    Last Post: December 27th, 2003, 05:15 PM

IMN logo majestic logo threadwatch logo seochat tools logo