Skip to content
Discussion options

You must be logged in to vote

@nikkwong hey there!

The naming of the moment.js functions startOf and endOf in arrow are floor and ceil respectively:

>>> import arrow
>>> arrow.utcnow().floor('week')
<Arrow [2022-10-10T00:00:00+00:00]>
>>> arrow.utcnow().ceil('week')
<Arrow [2022-10-16T23:59:59.999999+00:00]>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by krisfremen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants