Hey guys!

I'm trying to translate a human readable date to timestamp and vice versa to do calculations with date. It is incredible hard to do it with the human readable form, so, I'm asking if there is something already done to make this or I need to do myself.

Where I can get a formula to get an accurate time?

In my project I'm getting the time from the DS1307 and putting it on a struct. I want to convert this to do the calculations. AVR does not implements time.h, so, how can I do the calculations?