FS#9419 - time structure tm.tm_yday implemented
Opened by Christian Lees (cdlees) - Thursday, 25 September 2008, 02:43 GMT
|
DetailsHere is a path that implements the year day variable in the tm structure. It does leap year checking. It uses a lookup table to find the number of days, the same as the mktime function. It creates another copy of the lookup table, this could be moved outside to conserve space if required.
As I don't have SVN access from behind the firewall its been built against 18563. |
conform the Rockbox code guidelines you'll need to replace the TABs with 4 spaces.
I use it since at least an year and half with no problem... :-)