|
Boost Users : |
From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2006-12-06 07:45:25
Hi!
I have to read in a file format where the date is given as
month/day/year, but without leading '0' for day and month.
>From http://boost.org/doc/html/date_time/date_time_io.html I could not
guess how to declare the facet format string (No leading zeroes required)
Could you please complete the following code?
std::istringstream iss;
local_time_input_facet* input_facet = new local_time_input_facet();
ss.imbue(locale(ss.getloc(), input_facet));
input_facet->format("???????");
regards,
Markus
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net