Boost logo

Boost Users :

From: Serge Skorokhodov (serge.skorokhodov_at_[hidden])
Date: 2005-06-22 15:16:42


Hi,

The following code (boost 1.32, MSVC.NET 2003):

        ptime pt = from_iso_string("20030912T211733.01204");
        cout << pt << endl;
        cout << to_simple_string(pt) << endl;
        cout << to_iso_extended_string(pt) << endl;
        cout << to_iso_string(pt) << endl;
        cout << pt.time_of_day().fractional_seconds() << endl;
        time_duration td = pt.time_of_day();
        cout << to_iso_string(td) << endl;
        cout << to_simple_string(td) << endl;
        cout << td.fractional_seconds() << endl;

yealds:

2003-Sep-12 21:17:33
2003-Sep-12 21:17:33
2003-09-12T21:17:33
20030912T211733
0
211733
21:17:33
0

Is the fractional part of time (.01204) absent by design? I failed to
find it out from the documentation? Is there a workaround?

TIA

-- 
Serge

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