Add Fractional seconds to DateTimeFormatter

Discussion of ideas for features and new projects based on POCO.
Posts: 31
Joined: 05 Mar 2009, 17:08

Add Fractional seconds to DateTimeFormatter

Postby sampsont » 05 Mar 2009, 18:08

I need a fractional second option for the DateTimeFormatter. Currently, only millisecond is supported.

I propose adding the %F option shown below to the Poco library. Is this possible? Is there a better way?


[code]std::string DateTimeFormatter::format(const DateTime& dateTime, const std::string& fmt, int timeZoneDifferential)
case 'F': result.append(NumberFormatter::format0(dateTime.millisecond() * 1000 + dateTime.microsecond(), 6)); break;

Return to “Wishlist”

Who is online

Users browsing this forum: No registered users and 1 guest