Overview
Features
Download
Documentation
Community
Add-Ons & Services

Add DOY field for DateTimeFormatter/Parser

Discussion of ideas for features and new projects based on POCO.

Add DOY field for DateTimeFormatter/Parser

Postby dirvin » 15 May 2012, 20:19

Would it be possible for a Day-of-Year field to the DateTimeFormatter and DateTimeParser elements? This should be a 0-filled three-width field (001..366). May use "%j"? How about something like this?

case 'j': NumberFormatter::append0(str, dateTime.dayOfYear(), 3); break;

Thanks,

-D
dirvin
 
Posts: 3
Joined: 15 May 2012, 20:07

Re: Add DOY field for DateTimeFormatter/Parser

Postby marlowabnp » 25 Aug 2012, 23:15

I don't agree with using 'j'. If this is going to be done let's follow the pattern laid down by others. See http://userguide.icu-project.org/formatparse/datetime for a whole load of other fields that could be supported. Note that 'D' is used for day of year.
marlowabnp
 
Posts: 89
Joined: 08 Nov 2010, 17:29


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 0 guests

cron