-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: infer_datetime_format without padding #11142 #11146
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
Conversation
(('month',), '%b'), | ||
(('month',), '%m'), | ||
(('year', 'month', 'day'), '%Y%m%d', 0), | ||
(('year',), '%Y', 4), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think users expect %y
when they pass 2 digits. Should this be zfilled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I hadn't planned on adding %y
because it adds more ambiguity, e.g. '1-1-1'
. But I suppose it would be possible to follow the dateutil
semantics (%m-%d-%y
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, what I meant is to keep %Y
without padding, without adding %y
as this is ambiguous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I'm following, could you show an example date that would be effected?
I see what you're saying. I couldn't find any cases where it causes a problem, but I'll remove the padding on the year.
6bd2e76
to
417dbb4
Compare
@sinhrks pushed changes for your notes. The perf impact on
|
PERF: infer_datetime_format without padding #11142
thanks! |
Closes #11142