Replies: 1 comment
-
I don't understand what types you're expecting datePart and timePart to return. In one place you imply they are durations, but that doesn't make sense to me... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use momentjs since long time. I often find it to miss the equivalent of c# properties DateTime.Date and DateTime.TimeOfDay: they let me store a full DateTime in a single object (as it should be) and direct access to Date and Time components.
At the moment, to get time part of luxon DateTime object i have to (considering date a DateTime):
For accessing the date part is quite simpler:
In my proposal this should be:
I repeat, i ask myself all the time why it has not been implemented.
Greetings
Beta Was this translation helpful? Give feedback.
All reactions