Opened 15 years ago

Closed 10 years ago

#187 closed Feature Requests (fixed)


Reported by: tazforever Owned by: az_sw_dude
Milestone: Component: date_time
Version: None Severity: Showstopper
Keywords: Cc:

Description (last modified by René Rivera)

this short example

#include <boost/date_time/gregorian/gregorian.hpp>
#include <iostream>

using namespace boost::gregorian;
using namespace std;

int main()
  date d(day_clock::local_day());
  cout << d << endl;



I'm French. Is there any thing that deals with locale
in boost ?
i'd like somthing so i can display date (and other
things in date_time) the way i understand (like
01-Aou-2003, 01082003 or 01-08-2003)

Change History (4)

comment:1 Changed 12 years ago by René Rivera

Component: Nonedate_time
Description: modified (diff)
Severity: Showstopper

comment:2 Changed 11 years ago by Dave Abrahams

Owner: changed from nobody to az_sw_dude
Status: assignednew

comment:3 Changed 10 years ago by Marshall Clow

Marshall sez: I'm pretty sure that this was addressed in the rewrite of date_time's IO routines for 1.33. This bug should be closed.

comment:4 Changed 10 years ago by Andrey Semashev

Resolution: Nonefixed
Status: newclosed

Boost.DateTime? provides locale facets for date/time formatting/parsing. Names for months and weekdays, as well as the overall format, can be customized though the corresponding methods of the facets.

Note: See TracTickets for help on using tickets.