-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: hour/hours (and other plurals) based on dateutil.relativedelta #7418
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
Comments
cc @rockg |
hour
/hours
(and other plurals) should the same as singulars
I think this behavior is inherited from
I actually do use the singular form and don't find it to be a bug. My most common use case is getting the current business week, starting on Monday at 5am: |
Blek. That's an awfully big behavioural difference to hang on the letter |
I think a method call is appropriate here, this is essentially e.g.
should IMHO do the same thing (and not be sensitive to then
|
I agree that the difference is naming is subtle but it's obvious what is going on when somebody actually tries to use the singular versus plural constructs. I think both behaviors are necessary so I think one approach here is to leave it as is and provide more documentation as to what is actually going on. But I think we have two alternatives:
I'm personally in favor of (1) because it will fix issues people may or may not know they are having with applying offsets that straddle daylight savings changes. |
Isn't this what you mean by
|
moving this to 0.15.0 in order to make a deprecating change |
going to defer this. Still not sure what to do about it. |
Our internal logic on which keywords to dispatch to https://dateutil.readthedocs.io/en/stable/relativedelta.html |
discovered in #5292
This seems odd to me, documented anywhere?
note that
so this definitly seems suspect
(also problematic for
second/seconds
andminute/minutes
)this is only an issue in
DateOffset
constructions.The text was updated successfully, but these errors were encountered: