[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Eric V. Smith
Eric V. Smith added the comment: Heh. You're correct about 3173. And I'm even nosy on that issue! -- ___ Python tracker ___ ___ Pytho

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray added the comment: I think there may even be an issue for that, but with the currently broken issue search I'm not sure. Issue 3173 *might* be what I'm thinking of (thanks, google). And yes, the fact that stuff like this is not cross-platform is why it isn't documented, and

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Eric V. Smith
Eric V. Smith added the comment: Can we change this to a documentation bug? I was unaware of the use of '-', and I think most other people are, too. Although having just checked, it doesn't work under Windows :(. So maybe we shouldn't document it. Thinking out loud: I've often thought we sho

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray added the comment: It turns out that there is standard way to do this (well, a de-facto standard, anyway). glibc (and apparently others) support 'modifiers', of which the '-' modifier will suppress 0 padding. Furthermore, since we pass the format string through to glibc, Pyt

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk
Walter Cheuk added the comment: Usually %m, %d and %I are used instead, but the result is not satisfactory. -- ___ Python tracker ___ ___

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray added the comment: I'm asking if there are specific % codes commonly used for this case. (Even if there are there is no guarantee we are going to add them, but it makes it possible to make a case for it.) -- ___ Python tracker

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk
Walter Cheuk added the comment: Yes, this is standard in all Chinese locales, including China, Taiwan, Hong Kong, Macau and Singapore. -- ___ Python tracker ___ ___

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread R. David Murray
R. David Murray added the comment: We pretty much follow the posix standard on strftime. I doubt that we would introduce non-standard specifiers. Are there any in widespread use for your use case? -- nosy: +belopolsky, r.david.murray ___ Python t

[issue14441] Add new date/time directives to strftime()

2012-03-29 Thread Walter Cheuk
New submission from Walter Cheuk : Please add new directives for decimal-number month, day and hour that have neither leading zero nor leading space. Currently %m, %d and %I are used, but they have leading zeroes and are not suitable for some languages such as Chinese. GNOME provides %e and %l