Boost logo

Boost :

From: David Sankel (camio_at_[hidden])
Date: 2003-11-28 19:36:28


>Thanks. I was planning on modifying parse_date to
take the order as a
>parameter (eg: ymd, mdy, etc) and thus would open up
many other formats as
>well -- while I was in there....
 
>So it would look like:
 
>parse_date(const std::string& s, ymd_order_spec
order)

Great.

    date t =
boost::date_time::parse_date<date>(std::string(
        __DATE__),
        ymd_order_us);

works for me. Could

  enum ymd_order_spec {ymd_order_iso,
ymd_order_dmy, ymd_order_us};

be changed to something like:

  enum ymd_order_spec {ymd_order_ymd, ymd_order_dmy,
ymd_order_mdy, ymd_order_iso=ymd_order_ymd,
ymd_order_us=ymd_order_mdy };

David


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk