Thread: counting seconds

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    124

    counting seconds

    I need help trying to count seconds. If I have the user enter a date
    ex. 2005 03 23 how can I figure out how many seconds have passed until now?
    thanx

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    See this post a few lines down the current threads: http://cboard.cprogramming.com/showthread.php?t=98134

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    124
    i do not understand Elysia reply. Is there anything else that can help me?

  4. #4
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Do you have a C book? Have you researched what Date and Time functions are available to you?

    Todd

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    124
    yes i looked in there and all it shows is time(NULL) and it doesnt explain how to change the starting time

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to build a timer that counts the seconds elapsed?
    By Nazgulled in forum C Programming
    Replies: 17
    Last Post: 05-28-2007, 12:26 PM
  2. Problem with simple case statements
    By shoobsie in forum C Programming
    Replies: 2
    Last Post: 05-08-2006, 08:39 AM
  3. Time to seconds program
    By Sure in forum C Programming
    Replies: 1
    Last Post: 06-13-2005, 08:08 PM
  4. Algo for create hours and minutes with given seconds
    By BianConiglio in forum C Programming
    Replies: 6
    Last Post: 05-30-2004, 06:50 PM
  5. counting seconds
    By loobian in forum C++ Programming
    Replies: 3
    Last Post: 11-01-2001, 04:33 AM