Re: Formatting dates according to the region

2012-04-17 Thread Thomas Stover
> On Mon, Apr 16, 2012 at 12:13 PM, Michael Cronenworth > wrote: > > Look at the documentation for g_date_time_format(). You will find > > the other format specifiers that you want. %a, %A, %b, %B, and %c > > look helpful for you. > > Thanks for your suggestion, but the trouble I have with those

Re: Formatting dates according to the region

2012-04-16 Thread Dylan McCall
On Mon, Apr 16, 2012 at 12:13 PM, Michael Cronenworth wrote: > Look at the documentation for g_date_time_format(). You will find the > other format specifiers that you want. %a, %A, %b, %B, and %c look > helpful for you. Thanks for your suggestion, but the trouble I have with those is I would sti

Re: Formatting dates according to the region

2012-04-16 Thread Michael Cronenworth
Dylan McCall wrote: > However, g_date_time_format(datetime, "%x") only returns a date > formatted in that last way. How can an application use other date > formats for the current region? Preferably without duplicating code, > or, at least, effort. Look at the documentation for g_date_time_format(

Formatting dates according to the region

2012-04-16 Thread Dylan McCall
GNOME Control Center's Region & Language panel lists four different date formats for the selected region. For Canada, for example, it lists: Monday 16 April 2012 16 April 2012 16 Apr 2012 12-04-16 However, g_date_time_format(datetime, "%x") only returns a date formatted in that last way. How can