Skip to content

feat: add RTC-based wall-clock time to time microservice#31

Closed
undivisible wants to merge 1 commit into
mainfrom
feat/add-rtc-hpet-wallclock-time-7777270689987185891
Closed

feat: add RTC-based wall-clock time to time microservice#31
undivisible wants to merge 1 commit into
mainfrom
feat/add-rtc-hpet-wallclock-time-7777270689987185891

Conversation

@undivisible

Copy link
Copy Markdown
Contributor

This PR implements RTC-based wall-clock time querying to replace the placeholder time_read tick-based system in the services/time.in microservice.

It handles low-level interaction with CMOS RTC (I/O ports 0x70/0x71), BCD vs. binary conversions, 12-hour AM/PM vs. 24-hour clock variants, calculates leap year increments, and bundles everything into an accurate UNIX timestamp representing seconds since 1970.


PR created automatically by Jules for task 7777270689987185891 started by @undivisible

- Read CMOS/RTC registers (0x70/0x71) for date/time components.
- Implement parsing for BCD or binary values and 12-hour/24-hour modes.
- Translate hardware calendar components (seconds, minutes, hours, day, month, year) into Unix timestamp.
- Provide `time_wallclock()` wrapper to handle update-in-progress flag logic and compute total days offset considering leap years.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@undivisible

Copy link
Copy Markdown
Contributor Author

Targets deleted services/time.in (removed in 851cfb9). Wall-clock RTC belongs in kernel/ — see new issue.

@undivisible

Copy link
Copy Markdown
Contributor Author

Closing as obsolete. Targets deleted services/time.in (removed in 851cfb9). Wall-clock RTC belongs in kernel/ — see new issue.

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