-
Notifications
You must be signed in to change notification settings - Fork 264
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
Use raw u64
instead of chrono
on RTC API
#3200
base: main
Are you sure you want to change the base?
Conversation
Why isn't our own |
I assume because that's not using the UNIX epoch. |
Neither does the hardware. We can redefine Instant to have an undefined epoch, we can state that |
Well I don't know what to tell you, I advocated for dumb types in #3185, but @MabezDev wanted this to be a proper datetime type.
|
I think the suggestion here to add I think the following comment is also correct, it should return a |
jiff
instead of chrono
u64
instead of chrono
on RTC API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Just need to sort CI out now, don't worry about the MSRV check, we need to resolve that seperately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is there a way to actually obtain an |
Jiff is annoying to use here because no-alloc time zone support is limited. I could remove the example using the time zone, or rewrite it using |
I'd prefer without |
It will be in the next Jiff release. Maybe this week. The functionality (via a proc macro) is on |
I have removed the examples because I cannot get them to work. Feel free to add them yourselves if you have a faster test cycle than waiting for CI, or know how exactly to set them up. |
You should be able to run |
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
#3185
Testing