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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/23/10 18:22
Read: times


 
#179584 - Lots of code available
Responding to: ???'s previous message
Andy Neil said:
There should be plenty of open-source available for converting the 32-bit "UNIX Time" into hh:mm dd-MMM-yy...

http://codesearch.google.com


Per Westermark said:
There are lots of code available that converts a unix epoch into year, month, day, hour, minute, second without introducing a large number of small, constantly overflowing, software counters.


Probably, you only need to do the conversion when you actually need to display a date/time - internally, you could have your system work entirely with the 32-bit "UNIX Time" (and as many of the fractional-seconds bits as you may require).



List of 10 messages in thread
TopicAuthorDate
RTC of the C8051F410 of Silabs            01/01/70 00:00      
   this should help            01/01/70 00:00      
      UNIX time            01/01/70 00:00      
         Back to basics?            01/01/70 00:00      
            What is approx about 32.768kHz being 2^15 ticks/s?            01/01/70 00:00      
               Lots of code available            01/01/70 00:00      
               Thats huge indeed !            01/01/70 00:00      
                  32.768kHz            01/01/70 00:00      
                     Normally best solution without radio receiver            01/01/70 00:00      
                        which tolerance would you prefer, and why?? :)            01/01/70 00:00      

Back to Subject List