Finding days past based on DS1307 Realtime Clock Module and Time library
i'm using ds1307rtc library http://www.pjrc.com/teensy/td_libs_ds1307rtc.html in conjunction rtc module , time library. i'm trying determine number of days have past, , i'm wondering best approach doing is. can current day of month , subtract start day, complication comes fact different months different lengths. there easy way this?
days have "past" since what? storing values somewhere?
outside of that, it's math.
make array store number of days in each month, them & add together.
outside of that, it's math.
make array store number of days in each month, them & add together.
Arduino Forum > Using Arduino > Project Guidance > Finding days past based on DS1307 Realtime Clock Module and Time library
arduino
Comments
Post a Comment