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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/31/04 06:07
Read: times


 
#71490 - RE: Cool Michael !
Responding to: ???'s previous message
Additional comment....
It is feasible to compress a time stamp to 4 bytes in a manner that takes simpler calculations than the scheme of converting the whole YY/MM/DD HH/MM/SS value to seconds.

Instead convert the YY/MM/DD value to a "days since reference". Two bytes easily handles well over 100 years. Then convert the HH/MM/SS to a value of 2-second periods since the beginning of the day. Two bytes can then keep track of the time in the day at 2 second resolution (which is most likely more than enough resolution for the data logger type application).

Michael Karas


List of 35 messages in thread
TopicAuthorDate
Power outage logger            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
      RE: Power outage logger            01/01/70 00:00      
      RE: Power outage logger            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
      RE: Power outage logger            01/01/70 00:00      
         RE: Power outage logger            01/01/70 00:00      
            RE: Power outage logger            01/01/70 00:00      
               RE: correction            01/01/70 00:00      
            RE: Relay            01/01/70 00:00      
               RE: Relay            01/01/70 00:00      
         RE: RTC Crystal            01/01/70 00:00      
      Battery operated devices            01/01/70 00:00      
         RE: Battery operated devices            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      
      RE: Power outage logger            01/01/70 00:00      
         RE: Power outage logger            01/01/70 00:00      
            RE: Power outage logger            01/01/70 00:00      
            RE: Power outage logger            01/01/70 00:00      
            RE: Power outage logger - Jez            01/01/70 00:00      
         RE: Power outage logger            01/01/70 00:00      
            RE: Power Backup            01/01/70 00:00      
   RE: LCD            01/01/70 00:00      
      Okay What I have done            01/01/70 00:00      
         RE: Okay What I have done            01/01/70 00:00      
            Cool Michael !            01/01/70 00:00      
               RE: Cool Michael !            01/01/70 00:00      
               RE: Cool Michael !            01/01/70 00:00      
            RE: Okay What I have done            01/01/70 00:00      
         Proceed...            01/01/70 00:00      
   RE: Power outage logger            01/01/70 00:00      

Back to Subject List