No of days elapsed

This is a discussion on No of days elapsed within the C Programming forums, part of the General Programming Boards category; Hi, Is there any function to calculate the number of seconds or days elapsed for a given date. Thanks in ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    2

    Unhappy No of days elapsed

    Hi,

    Is there any function to calculate the number of seconds or days elapsed for a given date.

    Thanks in advance
    Sateesh.

  2. #2
    Registered User
    Join Date
    Jan 2004
    Posts
    2

    Re:

    I just found mktime() converts the tm structure into seconds. I have a tm structure representing a date, so now I could use this function to calculate the no of seconds.

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 26
    Last Post: 07-05-2010, 10:43 AM
  2. Advancing Days
    By nhubred in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2009, 06:22 PM
  3. Counting Number of days from year zero
    By wireless in forum C++ Programming
    Replies: 4
    Last Post: 06-16-2002, 07:31 AM
  4. Days elapsed in a year
    By opacity in forum C++ Programming
    Replies: 3
    Last Post: 04-10-2002, 03:10 PM
  5. while, sentinel, if, switch
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-11-2001, 10:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21