Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove icu::calendar unix epoch APIs #5748

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

robertbastian
Copy link
Member

The Unix epoch is a physical time concept. It does not work on a civil time API. https://errorprone.info/docs/time

Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah these functions were never very good and it's probably good to remove them, though it seems we should embrace a replacement.

///
/// assert_eq!(b.days_since(a), 10_917);
/// ```
#[doc(hidden)] // unstable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would prefer embracing the replacement APIs but we can do that later

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a hidden until API which is more powerful than this, so I don't want to stabilise this. until is not fully implemented, I'd have used it if the max-unit argument were respected.

@robertbastian robertbastian merged commit 10d734c into unicode-org:main Oct 30, 2024
28 checks passed
@robertbastian robertbastian deleted the unix branch October 30, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants