Date and time comparison

Hai to arduino community,

I am struggling one coding problem,

I want to compare two dates and times.

I am not understanding how to compare the dates and time.

I am giving the two dates and times are input as a string.

actually I found one program in c language by using the time.h library, but the time.h library could not there in the arduino.

so i want to compare two dates and times.

please help me.

thanks in advance

but the time.h library could not there in the arduino.

Really?

Start here: Arduino Playground - Time

Yes Groove,

In time.h arduino library there is no comparison of two dates and times. but in c program there is.

If you seen anywhere please send me the link.

Thank you Groove for your response.

Manidhar:
... In time.h arduino library there is no comparison of two dates and times. but in c program there is.
...

Can you point us to this c program? I too want to learn how to do this.

Can you convert the dates/times to a total number of seconds (or minutes) and compare the totals ?

Other wise just compare the year with the year, the month with the month etc.

...R