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

Add -rtcdate option to set initial date and/or time for RTCs #12915

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajrhacker
Copy link
Contributor

  • Remove system_time class from emu.h and rebase it on util::arbitrary_datetime
  • util/timeconv.cpp: Add struct tm converter and day_of_week and day_of_year functions to arbitrary_datetime

* Remove system_time class from emu.h and rebase it on util::arbitrary_datetime
* util/timeconv.cpp: Add struct tm converter and day_of_week and day_of_year functions to arbitrary_datetime
@ajrhacker ajrhacker marked this pull request as draft October 26, 2024 21:24
@ajrhacker
Copy link
Contributor Author

I'm putting this out here as a draft PR because, while I think the concept is worthwhile, the code changes are a bit messier than one might hope for. In particular, system_time::customize could probably be done in several neater ways, though the approach I used does enforce the format more strictly than others might.

I also had a hard time coming up with a good example for the docs, and finally remembered one of my own drivers. A lot of systems with RTCs don't display the time quickly or easily enough.

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.

1 participant