Boost logo

Boost Users :

From: Mojmir Svoboda (mojmir.svoboda_at_[hidden])
Date: 2007-03-12 09:13:01


hello,

i have simple task:
convert iso time 20051108095122.5+0500 to seconds from 1900/01/01 00:00 UTC

the thing is that doing something like:
    
    ...
    stringstream ss;
    local_time_input_facet * input_facet = new local_time_input_facet();

    input_facet->format(local_time_facet::iso_time_format_specifier);
    ss.imbue(locale(ss.getloc(), input_facet));

    ss << "20051108095122.5+0500";
    local_date_time my_date(not_a_date_time);
    ss >> my_date;
    ...

seems to drop the +-hhmm specifier and sets the zone to Z automatically
in my_date. otherwise it seems to be parsed correctly.

what am i doing wrong, please?

mojmir

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


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