NO

Author Topic: Functions for Finding the Difference in Years Months Day Min Hr and Seconds  (Read 3157 times)

tbayne

  • Guest
Given two dates in the form of Day Month Year Minutes and Seconds is there a function in C to enter two dates and times and retrieve the difference in years months days hours minutes and seconds?

JohnF

  • Guest
Given two dates in the form of Day Month Year Minutes and Seconds is there a function in C to enter two dates and times and retrieve the difference in years months days hours minutes and seconds?

Would the difftime function suit? It is declared in time.h

John

severach

  • Guest
Looks like mktime() will get the dates converted for you. Wikipedia has more information.

Julian Day