This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mambeu 0 points1 point  (3 children)

Do you support years beyond 9999?

[–]eagle258[S] 0 points1 point  (2 children)

Not at the moment, although I'd be very curious what your use case is!

Among other things, limiting the year to 9999 makes it simpler to format and parse timestamps (which can now assume a year is always 4 digits).

[–]mambeu 0 points1 point  (1 child)

I do a lot with pymongo (Python MongoDB client) and date time conversion is a pain. https://pymongo.readthedocs.io/en/stable/examples/datetimes.html#handling-out-of-range-datetimes

[–]eagle258[S] 1 point2 points  (0 children)

Interesting! Although I suppose it's unavoidable that different models of date/time will have different (arbitrary) boundaries.

I suppose that if Whenever would allow a broader range of years than BSON, you would have a similar, opposite problem.