time

Clock at top of screen displaying odd values instead of time in Ubuntu 23.10

Clock at top of screen displaying odd values instead of time in Ubuntu 23.10 Settings > Date & Time show correct options, but the clock on the top of the screen displays numbers (time of 24:40) that don’t make any sense (although the date is correct). See screenshot Asked By: EHJ || Source Here’s how …

Total answers: 1

sudo timedatectl timesync-status has high jitter and offset

sudo timedatectl timesync-status has high jitter and offset I’ve noticed that since the last update of the Ubuntu kernel the OS clock randomly jumps seconds. I noticed that after running a simple Python app which showed that the timestamps on the print statements are not in chronological order. Below is an example of print of …

Total answers: 1

how to format `time` output

how to format `time` output I’m using Ubuntu 23.10 x64. The time program has an -f flag but when I run it says -f command not found. time -f "%Uu %Ss %er %MkB %C" ./countwords hamlet.txt I’m trying to get the time program to output the memory use in addition to the default output. Asked …

Total answers: 1

How to change style and language of timezone

How to change style and language of timezone Ubuntu 23.10 How one to change the STYLE of timezone? I live in Ukraine, however I do prefer an English version of the system. But, my date is in Ukrainian language, what is somewhat out of place. e.g. Today is 21st of December, 21.12.2023 It is shown: …

Total answers: 1

Why is filesystem time always some msecs behind system time in Linux?

Why is filesystem time always some msecs behind system time in Linux? In Linux, it seems that filesystem time is always some milliseconds behind system time, leading to inconsistencies if you want to check if a file has been modified before or after a given time in very narrow time ranges (milliseconds). In any Linux …

Total answers: 2

Unix time, leap seconds, and converting Unix time to a date

Unix time, leap seconds, and converting Unix time to a date I read many, many posts about Unix time and many say that a day is 86400 seconds. But pages like this talk about leap seconds. And this made me confused. And I read that Unix time is based on UTC, and all I can …

Total answers: 3

Repeated incorrect time in Multipass clients with Ubuntu 22.04

Repeated incorrect time in Multipass clients with Ubuntu 22.04 I am using Ubuntu 22.04 LTS and installed Multipass to quickly bootstrap small Ubuntu VMs for testing. However, these VMs consistently show a strong time drift, and do not sync with the host OS (which has the correct system time). On the host: $ date Mo …

Total answers: 1

Ubuntu clock jumps

Ubuntu clock jumps I’ve noticed that since the last update of the Ubuntu kernel (specs are below) the OS clock randomly jumps seconds. I’m using Python 3.10.12 and Ubuntu 22.04.3 LTS 6.2.0-26-GENERIC I’ve noticed because making it run a simple Python app, I’ve noticed the timestamp on the print statements are not in chronological order. …

Total answers: 1

Raspberry Pi timedatectl fails with "Transport endpoint is not connected" and ".service files" errors

Raspberry Pi timedatectl fails with "Transport endpoint is not connected" and ".service files" errors I am encountering an issue on my Raspberry Pi when trying to use the timedatectl command. When I execute timedatectl status I get the following error message: spaikon@raspberrypi:~ $ timedatectl status Failed to query server: Transport endpoint is not connected spaikon@raspberrypi:~ …

Total answers: 1

Where is timedatectl information stored?

Where is timedatectl information stored? I am working on an embedded system without RTC battery. The time is synchronized via NTP when internet connection is available (which does not always happen). When the device is shut down, the time is reset to a past value. Sometimes I notice that this "default" value has been updated …

Total answers: 1

Mexico NTP (no more time changes since 2023) and my NTP server

Mexico NTP (no more time changes since 2023) and my NTP server I have a NTP server (Ubuntu) that actually have a Time Zone of America/Mexico_City, until 2022 we have had 2 time changes a year, most Americans spring forward (turn clocks ahead and lose an hour) on the second Sunday in March (at 2:00 …

Total answers: 2

How to add time in my script

How to add time in my script I have 3 scripts to build OpenWrt but I can’t set it up to have time at the end. Here’s what the script gives and the script. openwrt-snapshot-r22256+29-14334c222e-ipq806x-generic-linksys_ea8500-sysupgrade.bin But I want that kind of description with time : openwrt-snapshot-r22256+29-14334c222e-20230310-ipq806x-generic-linksys_ea8500-sysupgrade.bin The script: #!/bin/bash # createbuildinfo SCRIPT_DIR=$( cd — "$( …

Total answers: 1

Clock offset problem in dual boot with Ubuntu 22.04 and Windows 10

Clock offset problem in dual boot with Ubuntu 22.04 and Windows 10 I have installed Ubuntu 20.04 in a partition with Windows 10 on my HP Notebook. Initially whenever I would switch between the systems there would be a time offset (Neither Ubuntu nor Windows showed the right time). After using the command timedatectl set-local-rtc …

Total answers: 1

Find out whether time is updated automatically

Find out whether time is updated automatically I’m using Ubuntu 22.04.1 LTS and KDE. The checkbox Set date and time automatically in Date & Time – System Settings is greyed out. Not sure how to understand it. Is the time updated automatically or not? Are there any command to find it out? And if it’s …

Total answers: 1

Multiple timezone clocks in topbar on Ubuntu 20.04

Multiple timezone clocks in topbar on Ubuntu 20.04 I want to have several time zone clocks (cities with local time) in my top bar on my Ubuntu 20.04. There is a similar question and answer here but it does not work on my system as some users have reported that shell extension does not work …

Total answers: 1

Set ubuntu to use local time

Set ubuntu to use local time I’m using ubuntu 22.04.01 and I can set it to use my local time timedatectl Local time: Mon 2022-12-19 13:40:08 EET Universal time: Mon 2022-12-19 11:40:08 UTC RTC time: Mon 2022-12-19 11:40:08 Time zone: Europe/Bucharest (EET, +0200) System clock synchronized: yes NTP service: active RTC in local TZ: no …

Total answers: 1

Add one second to yyyymmddhhmmss with awk

Add one second to yyyymmddhhmmss with awk I have this file where the seventh field is a yyyymmddhhmmss. I need to increase just one second this number. So far, I’ve come up with: awk ‘BEGIN{FS=OFS="|"} $7=$7+1 ‘ <file> And it kinda works but… if the last two digits of the seventh field are "59", it …

Total answers: 1

Can `cal` show other Gregorian adoptions?

Can `cal` show other Gregorian adoptions? On my host I can show the adoption of the Gregorian calendar as it occurred for Great Britain and its colonies in 1752: $ cal september 1752 September 1752 Su Mo Tu We Th Fr Sa 1 2 14 15 16 17 18 19 20 21 22 23 24 …

Total answers: 1