Questions tagged [time]

Questions relating to time and timezones.

Filter by
Sorted by
Tagged with
2
votes
1answer
65 views

How can I change the date and time format in GNOME Shell's top bar?

I'm using Ubuntu 20.04 LTS. I want date and time in GNOME Shell's top bar to have the following format: Sun Jun 13 07:26AM IST 2021 instead of the current: Jun 13 12:53 PM How can I achieve this?
0
votes
0answers
22 views

Setting time with date and hwclock does not permanently set the time

I'm running these: ~$ sudo date --set="2021-06-09 16:33:50.0" Wed Jun 9 16:33:50 UTC 2021 ~$ sudo hwclock --systohc once the system is rebooted it loses the info and its 4 hours off. This ...
0
votes
0answers
11 views

Time desync when booting offline

My ubuntu machine time is about 2 hours later then it should when i boot my PC without internet connection, i mean when it should show me that is 20:20 it shows that is 22:20. It's not problem with ...
0
votes
0answers
14 views

Time not sync in Ubuntu and Windows 10 dual boot [duplicate]

I have setup my computer to have a dual boot for Ubuntu 20.04 and Windows 10. My time in Ubuntu is OK ,but when I go to Windows it changes. How can I fix my clock in Windows?
1
vote
0answers
35 views

Universal Time different from RTC time in timedatectl

As you can see in below, my Universal Time different from RTC time. It has 5 seconds later. My current Date is also 5 seconds later than real time. How can I fix it. I don't want to install ntpd or ...
1
vote
1answer
76 views

How to remove the “Add World Clock” in the notification area?

I'm on Ubuntu 20.10 and in this update, the events show at the bottom of the calendar along with the add world clock option as in the screenshot below. I know this got here because of I installed &...
0
votes
0answers
25 views

systemd-timesyncd service

I am have mentioned an IP in /etc/systemd/timesyncd.conf as NTP=192.168.1.180 and restarted the service through following command systemctl restart systemd-timesyncd but I time isn't syncing with ...
0
votes
0answers
27 views

confused about NTP server / not synchronized

I checked on my Centos physical machine status of NTP , and it's not synchronized : ntpq -pn remote refid st t when poll reach delay offset jitter =============================...
0
votes
0answers
287 views

Failed to set ntp: NTP not supported

Mu Ubuntu 20.04 suffers from time synchronisation problems. Particularly: v@v-VirtualBox:~$ timedatectl Local time: Sat 2021-05-01 09:30:44 EEST Universal time: Sat 2021-05-...
1
vote
2answers
107 views

Why does local time reset itself to wrong time after “timedatectl set-time”?

I have a server (Ubuntu 20.04) with an asynchronous time (wrong by around 7.5 minutes; RTC already seems to be equal/close to the "real" time) which I want to correct: timedatectl ...
0
votes
0answers
22 views

Time in top bar with applications in Ubuntu 20.04.2 LTS

In my desktop, the top bar has the file through help menus for the current application, but I have to click the windows key to show the time etc on top. Is there a way to show that top bar with the ...
0
votes
1answer
45 views

How to find out which NTP (Network Time Protocol) is configured on Linux-ubuntu

I'm working on ubuntu where i want see which NTP is used as default, ex. chrony! and if its even configured for the purpose of correct time synchronisation in a cluster of another app. So How can i ...
0
votes
1answer
31 views

Clock time off on dualboot

so i got windows 10 pro and ubuntu 20.04.2 lts on my dell latitude e5450. When i boot to ubuntu, then restart to windows 10, the time is wrong. It changes the bios time to +4 hours from now (UTC).
0
votes
1answer
39 views

accessing the GUI date/time setter programmatically

I'm maintaining a turnkey application. The customer has requested a date/time setter which would allow the user to set time, date, and time zone. (Evidently, some of our units will be going into ...
0
votes
0answers
44 views

Hard drive failing only on Sunday morning

A couple of weeks ago I started to have a problem with my HDD in my system failing to mount during boot. My system is set up to boot the root partition, / , from an SSD them boot /home from an HDD. ...
1
vote
0answers
27 views

Why is the time in ubuntu different from that in windows? [duplicate]

I recently installed ubuntu 20.04 alongside Windows 10 in dual-boot and when I was working with these two operating systems, I understood that the time in ubuntu is not the same as the time in windows....
0
votes
1answer
45 views

Does ubuntu OS time settings update with daylight savings?

We use ubuntu docker containers in production. We need to ensure, that time(time.Now().UTC() in GoLang) given by OS reflects daylight savings(when needed) Does ubuntu OS clock time, update with ...
1
vote
4answers
534 views

`ls -l` output duration instead of date/time eg “5 mins”/“6 hours”/“7 days” etc?

If I last modified a file 5 minutes ago, is it possible to make ls-l output something like "5 mins" instead of the actual date/time?
0
votes
1answer
203 views

Suggest any GUI App similar to digital wellbeing or Qualitytime for Ubuntu

I am new to Ubuntu. I want to count the total time spend on each app and on-screen time. Is there a software for the same? For example Digital Wellbeing and QualityTime.
2
votes
0answers
14 views

Samba share write access allowed in chosen time - how to do it?

I would like to configure a samba share to be writable only within scheduled time. What is the best method to do it? Regards Kriss
0
votes
1answer
76 views

Long load time for kernel after Boot repair

After a necessairy boot repair, the kernel load time is significantly longer than normal: 34s. http://paste.ubuntu.com/p/s45GGcf22B I don't know how to fix that. about: Long kernel load time the Intel ...
0
votes
1answer
596 views

Chrony time service doesn't work perfectly, synchronisation problems

On our Ubuntu 20.04 servers we run chrony as a time service. Unfortunately we always have time synchronization problems. It would be great if it ran always correctly for up to 0.05 seconds. How can we ...
0
votes
1answer
62 views

how to swap the time and cpu usage in shell script

This is my code here, ps -eo %cpu --sort=-%cpu |head|tail -n+2 | sed "s#^#$(date +%T);#" and the display will be like this: 01:29:29; 1.2 may I know if I want the output like: 1.2;01:29:29 ...
2
votes
1answer
46 views

Running, or “injecting” software with specific date [duplicate]

Is there a package or a way to run a software with a specific date or time so that when you run it, it uses the date you input instead of your system date.
1
vote
1answer
491 views

NTP port is blocked. How to sync time? - 18.04

My server provider blocked NTP port because they said there was an NTP attack. Now I cannot sync date and time in my ubuntu 18.04 server. How can I sync time? This is ntpdate -q 0.pool.ntp.org result: ...
0
votes
2answers
97 views

Why bash version do not support time up to millisecond? [closed]

Want to get the time in UNIX server up to millisecond but the output show below. Currently using bash version 3.2.57(1) $ date +%Y-%m-%d:%H:%M:%S.%N 2020-10-21:16:06:59.%N ...
0
votes
4answers
428 views

Wrong time when not connected to Internet

I have been a couple of days without Internet at home as my router has died. During these days I have observed the time shown by Ubuntu was completely wrong, way off. I do not think this is normal and ...
0
votes
1answer
77 views

Automatic date and time doesn't work

The automatic date and time feature doesn't work even after enabling it. I have dual boot Ubuntu alongside Windows 10 and every time I switch to windows and comeback to Ubuntu, the time is changed and ...
0
votes
0answers
39 views

Ubuntu server OFFLINE vs switch daylight saving time?

I'm struggling with the potential problem related to changing DST(daylight saving time) on Ubuntu server which has no access to the internet. The question is: if Ubuntu server is offline and can't get ...
0
votes
0answers
17 views

How can I show time in extended monitor on Ubuntu 18.04?

Previously, I have followed this issue, but my it already setup <primary>yes</primary> by default and nothing happend. My second monitor (extended monitor) doesn't have time widget. <...
1
vote
0answers
109 views

how to force date and time to be permanently shown on lock screen?

Ubuntu 20.04 here. I searched here but found nothing: https://extensions.gnome.org/# (may be I didn't search well?) If I keep pressing ESC, it will toggle user login and the date&time. I need it ...
0
votes
1answer
582 views

How to find time difference between two computers?

I'm running a distributed computer setup with one machine as time server for the another so the two are in sync to the accuracy of a few ms. I followed answers on this question: How do I setup a local ...
1
vote
0answers
36 views

How should I configure my OS so that theme of stackoverflow changes according to time of the day?

I'm using Ubuntu 18.04 and I want stackoverflow's theme to be change according to time of day: light theme when daytime and dark theme when night. In the site settings, when I set theme to "...
1
vote
0answers
31 views

How to change date from command line on Ubuntu 20.04 [duplicate]

For Ubuntu 20.04 desktop PC I can change date and time from the UI by using these steps, Click Date & Time in the sidebar to open the panel. If I have the Automatic Date & Time switch set to ...
0
votes
0answers
21 views

boot time for 20.04 LTS is very high on Lenovo N200 4GBRAM 180HDD

PC spec are: ''' Linux krishna-3000-N200 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ''' lshw for pC is below: ''' description: Computer width: 64 bits ...
0
votes
0answers
21 views

mtime of files on SD-card /camera mismatch UTC

when taking photographs with mobile phone or camera, the files are "created and modified" the actual local clock-time. As soon as i copy the file to my PC , or take a TAR from the SD-card ...
0
votes
0answers
127 views

Where can I find the source code of command line programs and how should I implement custom ones? [duplicate]

Every distribution of Linux has its own set of built-in command line programs. For example: cat, grep etc. Now, my question is: How are these built-in programs implemented and where can I find the ...
2
votes
1answer
105 views

Booting time lin ubuntu

My PC, which is running Ubuntu, takes a long time to boot. Here are the outputs of systemd-analyze critical-chain and systemd-analyze blame: $ systemd-analyze critical-chain The time when unit became ...
3
votes
1answer
1k views

Rapsberry Pi 4 with RTC and Ubuntu 20.04

I have a Raspberry Pi 4 and Installed Ubuntu 20.04 on it. Unfortunately, it will not be connected to the internet all the time meaning the date will be set back to the build time after each reboot. I ...
2
votes
2answers
457 views

Subtracting dates formats in bash

I am trying to create a countdown - most likely the hard way. I have it setup like this: #! /bin/bash #When to execute command execute=$(date +"%T" -d "22:30:00") #Current time ...
0
votes
0answers
22 views

i need a script when in a directory run coomand time and is more than 0 sec print 1

I need a script that run in a directory the command time and if the sum of user, real and sys is more than 0 sec, print a number 1. I ask because i dont know how to compare the time that prints the ...
1
vote
1answer
810 views

Changing date format in lock screen [duplicate]

I want to change the date format from what I chose in the Ubuntu installation, and it works by going to Region & Language and selecting the format that I want, but when I log out of the user, the ...
1
vote
1answer
149 views

Gmail in firefox showing time in UTC, but not in chromium

The time of emails in Gmail shows up in UTC in Firefox, but they are in Local time in Chromium. Calendar shows the local time. How to fix this?
1
vote
1answer
149 views

How do I solve Internet Time Sync Not Happening?

Searched through some places and did a lot of stuff. I have tried Unable to start ntpd.service, How do I set time and date from the Internet? and also tried chrony. I saw more places, as far as I ...
0
votes
1answer
21 views

Dual boot error

so I installed Ubuntu 20.04 LTS and it dual boots with Windows 10 Pro on my laptop. Everything is fine until the point when I switch between the two systems by restarting the computer. The time ...
0
votes
0answers
212 views

Unable To Update Ubuntu 18.04 LTS / Software Updater Failed To Download Repository Information

I found some similar threads on this issue but none of the suggestions listed in them seemed to have any effect. tl;dr here, long version below: Tried to change 18.04LTS system time to 12 hour style ...
5
votes
1answer
2k views

Customising date time format | Ubuntu 20.04 [duplicate]

I recently started using Ubuntu 20.04, and I want to customise date & time format (in Windows I could write it down using a "formatted string" like %YYYY-%MM-%day). I am referring to the clock at ...
2
votes
2answers
125 views

time under calendar?

Here is my desktop. Is there any Gnome extension to put the time underneath the calendar ? I do believe that I have seen it before, just once.
2
votes
1answer
4k views

Ubuntu server 20.04 - time format 24 hours on shell with date command

I've installed Ubuntu server 20.04, and I can't find a way to display the time format to 24 hours when I use the command 'date' in the shell. I check the locale information with an Ubuntu server 18.04 ...
0
votes
1answer
66 views

How do I add a sequence of numbers to a file

Ok what I'm trying to do is time how long it takes to write a sequence of numbers to a file, what I have so far is time seq 12 2 900 how do I get this number sequence to write to a file? Ta.

1
2 3 4 5
11