Date in french format
-
- Bounty Hunter
- Posts: 144
- Joined: Sun Jul 18, 2004 11:43 pm
- Location: Saint-Etienne, in France
- Contact:
Date in french format
Does anyone know how to put the date in french format (ie: make python to recognize the locale variable as fr_FR)? Thanks!
Gorrünwe
-
- Artisan
- Posts: 1270
- Joined: Fri Jan 03, 2003 3:27 am
- Location: Perth, Western Australia
- Contact:
-
- Bounty Hunter
- Posts: 144
- Joined: Sun Jul 18, 2004 11:43 pm
- Location: Saint-Etienne, in France
- Contact:
-
- Artisan
- Posts: 1270
- Joined: Fri Jan 03, 2003 3:27 am
- Location: Perth, Western Australia
- Contact:
-
- Bounty Hunter
- Posts: 144
- Joined: Sun Jul 18, 2004 11:43 pm
- Location: Saint-Etienne, in France
- Contact:
actually, i find a "brutal" solution, but i would prefer an "official" one:
my solution consists in:
1) reorganise the different strings in a "french order": day month year, hour:min:sec
2) make a function that translates the english months in the french months
If i can't find a "clean" solution, i'll keep this one...
my solution consists in:
1) reorganise the different strings in a "french order": day month year, hour:min:sec
2) make a function that translates the english months in the french months
If i can't find a "clean" solution, i'll keep this one...
Gorrünwe
-
- Artisan
- Posts: 1270
- Joined: Fri Jan 03, 2003 3:27 am
- Location: Perth, Western Australia
- Contact:
ah....you're not working off cvs then.
In cvs, the data format has been changed to just the timestamp. ie you get this now:
"This story first broadcast on: 220.12345975"
or whatever ...... as the date stuff was going to me implemented in c++ code properly (as opposed to my hacked version )......this may or may not be the case any longer (the devel who was going to do this has disappeared), but the next release may have this format instead of the old one. So all that will need to be changed is "This story first....etc"
Otherwise, the 'locale' modules has names for days, months etc for different locales, although I've never used this before.
Dan.a
In cvs, the data format has been changed to just the timestamp. ie you get this now:
"This story first broadcast on: 220.12345975"
or whatever ...... as the date stuff was going to me implemented in c++ code properly (as opposed to my hacked version )......this may or may not be the case any longer (the devel who was going to do this has disappeared), but the next release may have this format instead of the old one. So all that will need to be changed is "This story first....etc"
Otherwise, the 'locale' modules has names for days, months etc for different locales, although I've never used this before.
Dan.a
-
- Bounty Hunter
- Posts: 144
- Joined: Sun Jul 18, 2004 11:43 pm
- Location: Saint-Etienne, in France
- Contact:
-
- Artisan
- Posts: 1270
- Joined: Fri Jan 03, 2003 3:27 am
- Location: Perth, Western Australia
- Contact: