dur() function documentation #1116
-
From these pages:
I can't find any more detail about the capabilities of this function. It seems to somewhat support features of "momentjs", but in a custom way. For example, you can seem to do things like this: By default,
What I would like instead is to have the "most appropriate", rounded-up date range between two dates like "momentjs", like: "3 months ago", "4 minutes ago", etc. I've scoured the internet looking for more documentation on what |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It uses Luxon behind the scenes IIRC. Should support some of those operations. |
Beta Was this translation helpful? Give feedback.
-
I don't think there is presently a method for duration rounding - I will need to add one. |
Beta Was this translation helpful? Give feedback.
dur
is a function which creates a Duration object, which is an abstract representation of a duration of time. It gives you access to some fields, likeweeks
,days
, and so on.I don't think there is presently a method for duration rounding - I will need to add one.