Skip to content
Discussion options

You must be logged in to vote

Hi @treylav thanks for posting. I have given this some thought, although my focus at the moment is on getting the last breaking changes out (also relating to deltas).

For your use case, I do expect to improve support. Note that round() already does what you want for hours/minutes/seconds. For years/months/days it gets a bit more complicated, that's why there's no support yet. I might integrate them into round(), or add methods start_of(<unit>) and end_of(<unit>). There'd have to a separate API for the next weekday case.

I will take some time to get this API right, as I want to avoid having too many methods, which is confusing and error-prone

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@treylav
Comment options

Answer selected by treylav
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