PDA

View Full Version : calculate with date



Pedro Pinto
- 14th October 2005, 15:53
Hello All

In my circuit I need to calculate with date:
example:calculate the current date comparing with one previous date
and if the previous date is more than 45 days ago then light one led

I have in the board the RTC DS1307 device
Have anyone a example code how can I do that with a PIC


Thanks for any help

Best Regards

Pedro

NavMicroSystems
- 14th October 2005, 16:49
Pedro,

everything you ever wanted to know about date/time conversions (and even more) can be found Here (http://www.picbasic.co.uk/forum/showthread.php?s=&threadid=250&perpage=15&pagenumber=1)