Modify

Opened 14 years ago

Closed 9 years ago

#187 closed Feature Requests (fixed)

locale

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;
}

outputs 

2003-Aug-01

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)

Attachments (0)

Change History (4)

comment:1 Changed 11 years ago by René Rivera

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

comment:2 Changed 10 years ago by Dave Abrahams

Owner: changed from nobody to az_sw_dude
Status: assignednew

comment:3 Changed 9 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 9 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.

http://www.boost.org/doc/libs/release/doc/html/date_time/date_time_io.html

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain az_sw_dude.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.