[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH] Adding RTC device (work in progress)
From: |
Samuel Thibault |
Subject: |
Re: [RFC PATCH] Adding RTC device (work in progress) |
Date: |
Wed, 20 Nov 2024 14:37:38 +0100 |
Hello,
Zhaoming Luo, le mer. 20 nov. 2024 20:17:48 +0800, a ecrit:
> On 11/9/24 10:58 PM, Sergey Bugaev wrote:
> > I know that RTC can be configured to either represent local time, or
> > in UTC. MS Windows prefers the former, GNU/Linux (or rather systemd?)
> > prefers the latter [6]. Would it maybe make sense for the driver to
> > have an --option to *pretend* the RTC stores UTC time when it's
> > actually storing local time, transparently converting the time on
> > read/write? The driver would learn the local timezone the same way all
> > processes do (tzset?).
> >
> > [6]: https://wiki.archlinux.org/title/System_time
>
> I think we don't need to add an option to pretend the RTC stores UTC time
> when it's actually storing local time, because I think the Hurd expects RTC
> storing UTC time.
Debian GNU/Hurd can support both, it's up to hwclock to compute what
it wants to put in the RTC, and is configured in /etc/adjtime, see man
hwclock.
Samuel
- Re: [RFC PATCH] Adding RTC device (work in progress), (continued)
- Re: [RFC PATCH] Adding RTC device (work in progress), Sergey Bugaev, 2024/11/01
- Re: [RFC PATCH] Adding RTC device (work in progress), Samuel Thibault, 2024/11/01
- Re: [RFC PATCH] Adding RTC device (work in progress), Zhaoming Luo, 2024/11/03
- Re: [RFC PATCH] Adding RTC device (work in progress), Sergey Bugaev, 2024/11/05
- Re: [RFC PATCH] Adding RTC device (work in progress), Samuel Thibault, 2024/11/05
- Re: [RFC PATCH] Adding RTC device (work in progress), Zhaoming Luo, 2024/11/05
- Re: [RFC PATCH] Adding RTC device (work in progress), Sergey Bugaev, 2024/11/07
- Re: [RFC PATCH] Adding RTC device (work in progress), Zhaoming Luo, 2024/11/07
- Re: [RFC PATCH] Adding RTC device (work in progress), Sergey Bugaev, 2024/11/09
- Re: [RFC PATCH] Adding RTC device (work in progress), Zhaoming Luo, 2024/11/20
- Re: [RFC PATCH] Adding RTC device (work in progress),
Samuel Thibault <=
- Re: [RFC PATCH] Adding RTC device (work in progress), Zhaoming Luo, 2024/11/22
- Re: [RFC PATCH] Adding RTC device (work in progress), jbranso, 2024/11/10