[issue1982] Feature: extend strftime to accept milliseconds

2011-07-11 Thread R. David Murray
R. David Murray added the comment: You are better off opening a new issue as a feature request. Do add at least belopolsky as nosy on the new issue. -- nosy: +r.david.murray ___ Python tracker ___

[issue1982] Feature: extend strftime to accept milliseconds

2011-07-08 Thread Ben
Ben added the comment: Sorry to chime in on an old issue. Whilst it is good to have the ability to format the string up to microsecond precision, it would be better to be able to control the precision used. For instance, the ISO8601 specification states that there is no strictly defined prec

[issue1982] Feature: extend strftime to accept milliseconds

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> out of date stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue1982] Feature: extend strftime to accept milliseconds

2010-08-16 Thread Thomas Guettler
Thomas Guettler added the comment: Yes, I think this can be closed, too. -- nosy: +guettli ___ Python tracker ___ ___ Python-bugs-list

[issue1982] Feature: extend strftime to accept milliseconds

2010-06-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1982] Feature: extend strftime to accept milliseconds

2010-06-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: With %f support in, isn't this issue out of date? -- assignee: -> belopolsky nosy: +belopolsky stage: -> unit test needed versions: +Python 3.2 -Python 2.6 ___ Python tracker

[issue1982] Feature: extend strftime to accept milliseconds

2009-04-01 Thread Andreas Balogh
Andreas Balogh added the comment: - a_datetime.replace(microsecond = 1) + a_datetime = a_datetime.replace(microsecond = 1) Thanks for spotting the bug. -- ___ Python tracker ___

[issue1982] Feature: extend strftime to accept milliseconds

2009-03-24 Thread M. Dietrich
M. Dietrich added the comment: i am not shure what the code snippet shall proove but shouldnt't it read from datetime import datetime a_datetime = datetime.now() a_datetime = a_datetime.replace(microsecond = 1) iso_str = a_datetime.isoformat() b_datetime = datetime.strptime(iso_str, "%Y-%m-%dT

[issue1982] Feature: extend strftime to accept milliseconds

2008-11-17 Thread Andreas Balogh
Andreas Balogh <[EMAIL PROTECTED]> added the comment: Some typos corrected. Sorry for any inconvenience. a_datetime = datetime.now() a_datetime.replace(microsecond = 1) iso_str = a_datetime.isoformat() b_datetime = datetime.strptime(iso_str, "%Y-%m-%dT%H:%M:%S.%f") assert(a_datetime = b_dateti

[issue1982] Feature: extend strftime to accept milliseconds

2008-11-17 Thread Andreas Balogh
Andreas Balogh <[EMAIL PROTECTED]> added the comment: Yes, microsecond support is fine. Elaborating on my initial comment. The following should assert: a_datetime = datetime.now() a_datetime.replace(microsecond = 1) iso_str = adatetime.isoformat() b_datetime = datetime.strptime(iso_str, "%Y%m%

[issue1982] Feature: extend strftime to accept milliseconds

2008-11-17 Thread Ziga Seilnacht
Ziga Seilnacht <[EMAIL PROTECTED]> added the comment: Do you require millisecond support or would microsecond support be enough? r61402, which is included in Python 2.6, added support for %f format to datetime.strftime() and datetime.strptime(). See also #1158. -- nosy: +zseil _

[issue1982] Feature: extend strftime to accept milliseconds

2008-10-29 Thread Wang Chun
Wang Chun <[EMAIL PROTECTED]> added the comment: Ruby recently added support of millisecond and nanosecond to strftime. This is their changeset: http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=18731 To use the extended strftime, one can do: >> Time.now.strftime('%Y-%m-%dT%H:%M:

[issue1982] Feature: extend strftime to accept milliseconds

2008-01-31 Thread Christian Heimes
Christian Heimes added the comment: Your chances are going to increase if you can come up with a decent patch. It's going to be harder than you might think. Python uses the system's strftime function. You'd have to implement a strftime replacement which supports miliseconds. Can't you use anothe

[issue1982] Feature: extend strftime to accept milliseconds

2008-01-31 Thread Brett Cannon
Changes by Brett Cannon: -- type: -> rfe __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1982] Feature: extend strftime to accept milliseconds

2008-01-31 Thread Andreas Balogh
New submission from Andreas Balogh: Currently serializing datetime objects into isoformat string is well possible. The reverse process - parsing an isoformat string into a datetime object - doesn't work due to the missing %-tag for the strftime format string. Proposal: Add new tag to strftime li