Daylight saving time, thoughts?

It is just me objecting to any attempts to hide reality from the user.

2 Likes
# hwclock --show
2025-10-27 21:28:00.623725+11:00
# date
Mon 27 Oct 2025 21:28:06 AEDT
# date -u
Mon 27 Oct 2025 10:28:36 UTC

OK my computer is using UTC I think, , but , if i create a file

# cat > junk
lllll     
# ls -l junk
-rw-r--r-- 1 nevj nevj 6 Oct 27 21:31 junk
# 

It displays its time in localtime.
So, when I use make does it look at localtime of .o files as in the ls or is that just for display and make sees UTC?

You can see why I dont trust displays fiddling with the content.
I need to know what make sees as the file creation time attribute.?

Or is my computer using localtime? I dont even know if the hwclock output is fiddled.

This is in Void. I will check another distro.
MX is the same … well at least they are consistent.

2 Likes

IIRC, hwclock has to be in UTC timescale.

1 Like

That sounds sensible , you would not want the system clock jumping back or forward for DST
but


[quote="Neville Jackson, post:62, topic:12662, username:nevj"]

hwclock --show

2025-10-27 21:28:00.623725+11:00

[/quote]

21:28 is localtime ??

So does the ‘hw clock’ keep UTC, but the hwclock --show command display localtime?

I am confused

Edit:
The Arch wiki explains

but only for systemd users.

2 Likes

This is how it does it

" Standard behavior of most operating systems is:

  • Set the system clock from the hardware clock on boot.
  • Keep accurate time of the system clock, see #Time synchronization.
  • Set the hardware clock from the system clock on shutdown."
2 Likes

3 Likes

It is strange. We have the technology to navigate a spaceship to Mars, but we can not cope with our own localtime.

3 Likes

Dual booting Windows and Linux is a bit of a pain because Windows assumes the computer is set to local time. Linux assumes it is set to UTC time. That’s by default. Linux can be configured so it is aware the computer time is set to local time. If you don’t do this and you reboot from Windows to Linux the time changes and sometimes even the date, depending on the time of day.

3 Likes

Can Windows be configured to assume UTC?

1 Like

Yes, it can. Every machine dealing with time zones can.

2 Likes

I have always ran Gentoo using local time, have never had any issues!!!

2 Likes

But have you ever run make for compiling a kernel or any other huge compiling job within the switching hour?

BTW, I’m also using local time; I think it’s a default habit.

2 Likes

I think nearly everyone defaults to that.
It really makes zero differnce within one machine … except on switching night.

Sharing files around the globe may be another matter… i have never tried it in any critical manner.

2 Likes