Rockbox

Tasklist

FS#9419 - time structure tm.tm_yday implemented

Attached to Project: Rockbox
Opened by Christian Lees (cdlees) - Thursday, 25 September 2008, 02:43 GMT
Task Type Patches
Category Operating System/Drivers
Status Unconfirmed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Here 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.
This task depends upon

Comment by Maurus Cuelenaere (mcuelenaere) - Thursday, 25 September 2008, 11:55 GMT
Style notice:
conform the Rockbox code guidelines you'll need to replace the TABs with 4 spaces.
Comment by Christian Lees (cdlees) - Thursday, 25 September 2008, 22:31 GMT
Fixed formatting.
Comment by Rosso Maltese (asettico) - Saturday, 17 October 2009, 08:22 GMT
Sync to r23221.
Comment by Rosso Maltese (asettico) - Wednesday, 16 February 2011, 11:13 GMT
Is it possible to commit it?
I use it since at least an year and half with no problem... :-)

Loading...