Thread: No of days elapsed

  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, 11:50 PM