It is just me objecting to any attempts to hide reality from the user.
# 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.
IIRC, hwclock has to be in UTC timescale.
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.
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."
It is strange. We have the technology to navigate a spaceship to Mars, but we can not cope with our own localtime.
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.
Can Windows be configured to assume UTC?
Yes, it can. Every machine dealing with time zones can.
I have always ran Gentoo using local time, have never had any issues!!!
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.
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.
