-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Feature request: allow TimePeriod constructors of the form 25*Millisecond #10449
Comments
+1 |
We could define lowercase as a unit |
We could have both, no? |
Consider the use cases involving time arithmetic:
or
The latter expressions feel much more natural as scientific calculations. |
+1, but it feels more natural in lowercase. |
I'm sure the Germans would disagree ;) I thought lowercase constructors were going away in #1470? |
Technically |
I think |
Currently one has to construct a
TimePeriod
using the constructor syntaxDates.Millisecond(25)
. In contrast, it is much more natural to useMillisecond
as a unary postfix unit (like whatSIUnits.jl
does), and have25*Dates.Millisecond
produce the same result.The text was updated successfully, but these errors were encountered: