Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/16/08 13:21
Read: times


 
#153466 - Another approach
Responding to: ???'s previous message
Rather than "Zipping", why not just keep track of the number of minutes that have elasped since an arbritrary date?

3 bytes gives you a 24 bit number, which gives you 16.7M minutes, or 31 years!

Set Jan 01, 2008 as time=0, and write a program to convert the RTC date into elasped minutes.

Of course, if you are worried about what happens in 2039, then use a 4th byte, and be safe until the year 10173. After that, it is someone elses problem.



List of 6 messages in thread
TopicAuthorDate
saving date in zipped format            01/01/70 00:00      
   What precision?            01/01/70 00:00      
      as more as posible            01/01/70 00:00      
         Another approach            01/01/70 00:00      
            time differences            01/01/70 00:00      
            thanks: Reed and Waclawek            01/01/70 00:00      

Back to Subject List