I want to calculate the difference in seconds between two date and time. As for example I have two dates and times like
2012.09.28 at 13:30:00
2017.11.25 at 16:32:55
Now I want to know how much seconds are there between these two data and time. I use C as programming language.
I also want to say that I use AVR uC and as compiler I use mikroC PRO for AVR. In mikroC there is built in library to do the job. But I do not want to use it. I want to build my own algorithm.
Please help me.