Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strftime should support %f to print milliseconds #67046

Closed
tonn81 mannequin opened this issue Nov 12, 2014 · 2 comments
Closed

strftime should support %f to print milliseconds #67046

tonn81 mannequin opened this issue Nov 12, 2014 · 2 comments
Labels
type-feature A feature request or enhancement

Comments

@tonn81
Copy link
Mannequin

tonn81 mannequin commented Nov 12, 2014

BPO 22857
Nosy @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-11-12.17:57:46.693>
created_at = <Date 2014-11-12.17:30:57.839>
labels = ['type-feature', 'invalid']
title = 'strftime should support %f to print milliseconds'
updated_at = <Date 2014-11-12.17:57:46.691>
user = 'https://bugs.python.org/tonn81'

bugs.python.org fields:

activity = <Date 2014-11-12.17:57:46.691>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2014-11-12.17:57:46.693>
closer = 'r.david.murray'
components = []
creation = <Date 2014-11-12.17:30:57.839>
creator = 'tonn81'
dependencies = []
files = []
hgrepos = []
issue_num = 22857
keywords = []
message_count = 2.0
messages = ['231085', '231091']
nosy_count = 2.0
nosy_names = ['r.david.murray', 'tonn81']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue22857'
versions = []

@tonn81
Copy link
Mannequin Author

tonn81 mannequin commented Nov 12, 2014

Now you cannot get milli (micro) seconds using strftime. It should be fixed.

AFAIK %f should be the right pattern for this

@tonn81 tonn81 mannequin added the type-feature A feature request or enhancement label Nov 12, 2014
@bitdancer
Copy link
Member

You are talking about time.strftime, I presume. datetime supports %f. time.strftime does not, because it wraps the system strftime, and that does not support %f (at least not on my linux system).

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant