Message186698
Yes, I need to find out calendar-week-start-day information based on the current locale.
Or in the other words, I need to find out what the correct parameter for calendar.Calendar([firstweekday]) object is. With locale en_US it should be Sunday, with locale sk_SK it should be Monday, and so on.
I guess it could be find out from LC_TIME locale.
There is already API for such small bits of information:
<documentation>
locale.localeconv()
Returns the database of the local conventions as a dictionary. This dictionary has the following strings as keys:
</documentation>
However, there is no category for LC_TIME so far. |
|
Date |
User |
Action |
Args |
2013-04-13 07:37:22 | IzidorMatusov | set | recipients:
+ IzidorMatusov, eric.araujo, r.david.murray, tshepang |
2013-04-13 07:37:22 | IzidorMatusov | set | messageid: <1365838642.78.0.246105247413.issue17659@psf.upfronthosting.co.za> |
2013-04-13 07:37:22 | IzidorMatusov | link | issue17659 messages |
2013-04-13 07:37:22 | IzidorMatusov | create | |
|