2022 Developer Survey is open! Take survey.

Questions tagged [date]

Questions regarding NTP(network time protocol), cron(task scheduler) and the display of date and time in the panels and elsewhere in Ubuntu. This is an overly general tag, avoid using it if possible.

Filter by
Sorted by
Tagged with
1 vote
0 answers
15 views

change date format for timedatectl ubuntu

How to change date format for the command timedatectl I'm getting results like YYYY-MM-DD I need DD-MM-YYYY Local time: Mon 2022-05-16 14:41:06 IST Universal time: Mon 2022-05-16 09:11:06 UTC ...
user avatar
  • 121
12 votes
1 answer
823 views

Understanding output of command: date -d "12:24 <lower-case-alphabet>"

Can someone please help me understand why adding any lower-case-alphabet (a-z) as below makes a difference in date -d output and what do these letters in that command mean? wip$ date -d "12:24 a&...
user avatar
  • 123
1 vote
1 answer
35 views

How to change Date language to English while using a different Format?

I'm running Ubuntu 20.04.4 LTS with Language set to English (US) and Formats set to Deutschland. Everything works fine, except for the name of months in dates, e.g. drwxrwxrwt 2 root root 4,0K Mär ...
user avatar
2 votes
1 answer
73 views

How can I customize the time and date format in the top bar, without a shell extension?

There are several Gnome Shell extensions, but how do they work? Can I do what they do? I want to use a customized date/time format string myself, without requiring a shell extension. Is there ...
user avatar
0 votes
0 answers
21 views

Overwrite FS properties with the EXIF props

I currently have some files that are working and displaying the correct properties from the FS. But some are showing incorrectly when trying to order by date. As the date is showing as "Unknown&...
user avatar
4 votes
1 answer
117 views

Files with date "Unknown" but files have date created in meta data

I am rather confused why nemo is reporting that some files have no date set. Which means I cannot order my files by Date. This is only happening with my GoPro videos I will add. But when checking I ...
user avatar
0 votes
0 answers
19 views

Nemo Created/Modified Unknown but metadata has dates

File with Unknown exiftool GX015352.MP4 ExifTool Version Number : 11.88 File Name : GX015352.MP4 Directory : . File Size : 2....
user avatar
0 votes
0 answers
30 views

date change during rsync operation

Ubuntu 21.10 - using rsync -av (have been for years) random transferred files switch the date to "now" which means at the next transfer it transfers those files again which means the ...
user avatar
  • 1
0 votes
2 answers
352 views

Writing a specific format of time in a text file every minute using Cron [duplicate]

I'm rather new to Linux. I recently wanted to learn how to work with Cron. So I wrote the following line to crontab file and it worked: * * * * * date >> //home/os/system-date.txt This line will ...
user avatar
0 votes
0 answers
68 views

Would like local time to be automatically updated

I am using Ubuntu 20.04 server edition on a RPi 4. I have seen tutorials and posts on how to set the local time manually. However, I would like to set the device to automatically update the local ...
user avatar
0 votes
1 answer
69 views

What is RTCTimeUSec shown by `timedatectl show`?

On assorted flavors and versions of Linux, I see the following when issuing the timedatectl show command: Timezone=America/Los_Angeles LocalRTC=yes CanNTP=yes NTP=yes NTPSynchronized=yes TimeUSec=Mon ...
user avatar
  • 55
0 votes
0 answers
33 views

Two letter abbreviated weekday name

Running $ date produces Mo 15 Nov 2021 18:02:27 CET. Apparently the standard weekday name should have three letters, i.e. Mon in this case, and it is causing some problems with one software I'm using. ...
user avatar
  • 73
1 vote
0 answers
127 views

date command timezone not reflecting correct date/time from timedatectl

I am in the MDT timezone (UTC -600). When I run the date command it shows the UTC time but shows MDT as the timezone, so the timezone looks correct but the time is actually 6 hours ahead of what it ...
user avatar
  • 11
0 votes
0 answers
299 views

custom date-time format in ubuntu 20.04 top bar does not work as it did previously

Custom date-time format worked fine in 18.04, but does not change despite following all instructions I could find. dconf is set to custom with the code I want (%A %-e %B %Y %-I:%M:%S %P %Z) (there are ...
user avatar
2 votes
0 answers
54 views

Gnome display date in vertical panel

I have installed Dash to panel to my Gnome desktop and can't find a way to display the date with the time because it's a vertical panel. I have positionned my dash panel to the right:
user avatar
0 votes
1 answer
61 views

Is this a bug in 'date' command version 8.28/8.30?

When I want to display the date in format YYYY-MM-DD I use the command: date +%Y%m%d This worked for ages without a problem. Now in Unbuntu 20.04LTS with the date command version 8.30, it gives an ...
user avatar
  • 1
3 votes
1 answer
698 views

How to make date show day/month/year in numbers instead of letters and words?

At the moment, this is how the date and clock looks like in Ubuntu's top bar: In Estonian, "R" stands for "Reede" or "Friday", and "Juuli" means "July&...
user avatar
  • 97
1 vote
0 answers
40 views

where to find an example png file which has date and time metadata that eye-of-gnome (eog) shows

I'm using xubuntu 20.04 and have installed the eye-of-gnome (eog) on it. The version of eog is GNOME Image Viewer 3.36.3 On the right side of the eog window (which is called "Image Viewer") ...
user avatar
  • 45
0 votes
0 answers
118 views

how to take the time difference between two dates and time

I have access logs from my server. I need to take the time difference between two logs. My access logs have the following time format: "14/Apr/2021 06:25:09". To take the difference between ...
user avatar
  • 1
2 votes
2 answers
142 views

How to manipulate date keeping the same time via command line

I am in a need of manipulating the system time for few minutes. Say I need to keep the time as it is and change the date to next date. After few minutes.. I need to go back to the normal time with out ...
user avatar
  • 20.3k
0 votes
0 answers
43 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 ...
user avatar
0 votes
0 answers
605 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 ...
user avatar
2 votes
1 answer
115 views

Display accurate timezone

$ date Tue 25 May 2021 12:31:56 PM CST $ systemctl list-timers NEXT LEFT LAST PASSED UNIT ACTIVATES Tue 2021-05-25 ...
user avatar
  • 629
0 votes
1 answer
52 views

Command date execution

I'm trying to execute this command date +'%-4.4h %2.1d %H:%M' however the output is not correct: %-4.4h %2.1d 12:50 I believe that there is something wrong either with my ubuntu terminal or the ...
user avatar
  • 3
0 votes
0 answers
17 views

Create a window that displays just the date, just like xarclock, except for the date

I want to create a window that simply displays the date, with as many of these requirements as possible - a -geom option - a -bg and -fg option to specify background and foreground options - an ...
user avatar
  • 1,419
2 votes
1 answer
215 views

Using datetime expression in alias

I have an application with logging, and I usually watch it with tail -f /var/myapp/logs/2021-04-20/main-log-2021-04-20.log How can I create an alias for this command and execute it with current date?
user avatar
  • 131
1 vote
0 answers
41 views

how to make the status bar to show both georgian date and persian(shamsi) date?

Is there a way to make the status bar on the top the screen to show both georgian and persian date? It would be really handy
user avatar
  • 322
0 votes
1 answer
54 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 ...
user avatar
  • 101
0 votes
1 answer
179 views

Update date and disable automatic updates

Ubuntu 20.04 running in VirtualBox with MacOS host Using python rather than a shell script. For linux commands running in a sub-process. Date is updated, however not long after date/time is reset ...
user avatar
0 votes
0 answers
38 views

Display of dates/times in ISO 8601 format in Files (Nautilus) [duplicate]

Is there a way to get the file manager Files (Nautilus?) and other applications under Ubuntu to display the date and time in standard ISO 8601 format, instead of the "comfortable" style, ...
user avatar
  • 139
1 vote
1 answer
1k 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: ...
user avatar
  • 113
0 votes
0 answers
57 views

How to find and move files between certain dates? [duplicate]

I have two repertories named 'test1' and 'test2' with multiples files with .jpg or .mp3 extensions. I want to find and move all files between 22-juin-2016 and 21-September-2018 to a new folder called '...
user avatar
1 vote
0 answers
72 views

How to correct Modified Date in Files/Nautilus

How do I get Nautilus/Files to display the correct modified date? I just noticed that when my camera's RAW files, the modified date displays a date 31 days in the future! Please refer to the ...
user avatar
0 votes
1 answer
306 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 ...
user avatar
2 votes
0 answers
169 views

Automatic Date & Time

Today something strange is happening. I'm running Ubuntu 20.04 with the latest updates, and the standard GNOME UI. My time suddenly started going wrong, and it seems to be due to the Automatic Date &...
user avatar
3 votes
1 answer
621 views

Can not change date/time format

I am using UM 20.04 on a persistent install on a pendrive. When I use dconf-editor and change the custom time format, nothing changes. Same thing happens on a HD installation. Why did Ubuntu Mate make ...
user avatar
  • 2,256
0 votes
0 answers
176 views

'date' Command Failure in Ubuntu 18.04 LTS

I am getting errors on the date command if I use the timezone designation stored in the system: $ date -d "2019-12-10 23:26:30 EDT +4 hours" date: invalid date ‘2019-12-10 23:26:30 EDT +4 ...
user avatar
2 votes
2 answers
766 views

Ubuntu on Raspberry Pi 4 Internet/Date Issues

I have installed Ubuntu Server 20.04 on a Raspberry Pi 4 4GB model. It's meant to be a media/file server for my parents. I set everything up on it at my house and it works great. However, when I hook ...
user avatar
2 votes
2 answers
963 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 ...
user avatar
  • 35
0 votes
1 answer
93 views

Configuring date command

Linux noob here! My PC runs Lubuntu 18.04.4 LTS (32-bit). The other day, I learnt about the date command. It's typically not useful for me because I could just look a little above my screen at the ...
user avatar
  • 29
3 votes
1 answer
357 views

How can I set LibreOffice to use ISO 8601 date format?

I need LibreOffice to use ISO 8601 date format, but it falsely shows MM/DD/YY when it should correctly be showing YYYY-MM-DD. To reproduce I do: Open a new LibreOffice document and choose Insert->...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
542 views

How to set date command line output defaults to 24h format?

My XFCE shows correct time: But when running date command it defaults to 12h format? already tried solution from this and this question but still the same, I'm using en_CA.UTF-8 btw.
user avatar
  • 423
0 votes
1 answer
951 views

Command inside another command - Bash

Note I know how to run a simple command inside another command, but in my case is special. My command contain ". (date "+%Y-%m-%d") Goal I need to display my log via 1 command Steps If ...
user avatar
  • 155
0 votes
1 answer
24 views

Add values to one string

I would to like to copy one file on a certain day at 2:30 using crontab Assume I have a file called 200516.txt I want to copy on May, 16th 2020 -> date +%y -- 20 -> date +%m -- 05 -> date +%d -- 16 -...
user avatar
3 votes
1 answer
1k views

Change all dates of all files in directory

I have a directory with the following files: $ ls -l -rw-r--r-- 1 myusername myusername 4129128 Aug 7 2013 A-32.JPG -rw-r--r-- 1 myusername myusername 4106876 Aug 7 2013 A-37.JPG -rw-r--r-...
user avatar
2 votes
1 answer
756 views

How Do I Change My Systemwide Date and Time Format to ISO 8601 YYYY-MM-DD hh:mm:ss Format on Ubuntu 18.04.4 LTS?

I am using Ubuntu 18.04.4 LTS with GNOME DE and I want to change my systemwide date and time format to ISO 8601 format, specifically YYYY-MM-DD for dates and hh:mm:ss for times. How can I do this?
user avatar
1 vote
0 answers
681 views

How do i get GRUB to display environment variables in label components?

So, I've been trying without much success to get the current date + time to display on the boot menu. I read here that loading the datehook module would help, as it added several new variables for ...
user avatar
29 votes
3 answers
7k views

Why can't I change system time to less than 1970?

I wanted to check how a certain software reacts when I change my computer's date. But I could not change the system time to anything less than 1970. Why is that?
user avatar
-2 votes
2 answers
808 views

ubuntu has a different time than the system time [closed]

My Ubuntu 18.04.3 date/time is 3:10 AM Feb 26, 2020. However the BIOS date/time is 8:10 AM Feb 25, 2020. If I correct the date/time in Ubuntu, it changes it on the BIOS, and viceversa. How can I solve ...
user avatar
  • 129

1
2 3 4 5 6