[En-Nut-Discussion] Standard C time functions for Nut/OS
Oliver Schulz
Oliver.Schulz at bong.de
Thu Oct 16 08:38:58 CEST 2003
Hi All,
I nearly finished the development of the standard c time functions. I compared several implementations from MS, Borland, ... written for a old system called "DOS". It was a bit tricky because of the massive different calculations for converting the seconds counter to date/time including leap year and so on.
But I implemented also the features for timezones and daylight saving and added a correct version of Lars Anderson's SNTP idea (sorry Lars, but your SNTPFRAME struct was wrong).
BTW, while testing the SNTP, I discovered that Win NT/2000 servers respond to a SNTP packet sent to the broadcast address (255.255.255.255). So if you have at least one server in your LAN, you don't need to add official IP addresses for (S)NTP servers in your code.
Hopefully I can manage to write some readme files today and send my modifications to Harald.
Oliver.
More information about the En-Nut-Discussion
mailing list