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
28 votes
2 answers
39k views

How to change the date format? [duplicate]

Presently the date is showing as mmm dd hh:mm:ss. Is there any way that I can change it to as per my liking. For example : dd mmm, hh:mm:ss.
Arindom's user avatar
  • 8,182
70 votes
3 answers
95k views

How to change Date/Time format to English?

I have installed Ubuntu 13.04 and set my local time/date and its working, the only thing that's bugging me is that I cannot change it to English. I would like to do this because it is hard to read and ...
Qasim's user avatar
  • 22.1k
86 votes
7 answers
492k views

How can I change the date and time on Ubuntu?

When I go to change the date and time it doesn't work. I try to unlock but it just won't unlock. If there is any way to make it work please help. I know it isn't very descriptive but I really would ...
viaggio's user avatar
  • 861
19 votes
3 answers
11k views

How do I customize the date/time display in GNOME Shell's top bar?

Time indicator is shown as "%a %H:%M" in the center of the top bar. How do I move it back to the right where it belongs, and make it include the full date and time ("%Y-%m-%d %s %H:%M")?
sds's user avatar
  • 2,543
63 votes
7 answers
328k views

How to change ubuntu's server date and time via command line?

The Ubuntu server's current date and time is different from the time zone date and time. I have tried using: sudo date "30 Sep 2015 4:43:42" to change it but it did not change the date and time, ...
Priska Aprilia's user avatar
4 votes
1 answer
4k views

date command not resolving properly in bash alias

I'm trying to set up a way for me to just type newjournal, and a new journal entry named year-month-date-time.txt is created in a year subdirectory in ~/documents/journals. I've got it set up as an ...
YMGenesis's user avatar
  • 103
12 votes
5 answers
32k views

Get today’s date and use it in filename

Using the command-line, I want to create a log file with today's date in the name (for example, today is 05/17/2011, so the filename would have to be log051711). I know how to create the file (touch ...
Louis B.'s user avatar
  • 235
41 votes
3 answers
167k views

How to stop automatic time update via terminal?

This question shows how to stop automatic time update (and switch to manual): How to stop automatic time update? I want to do this exact thing but I can only ssh onto my machine so I need to make ...
GeneralAsh's user avatar
10 votes
5 answers
2k views

How can I batch convert folder names from one date format to another

I have a large number of folders, named as dates like so: 10 Aug 2010 15 Sep 2010 20 Jun 2010 25 Jul 2010 6 Nov 2010 10 Sep 2010 16 Aug 2010 20 Mar 2010 26 Aug 2010 6 Oct 2010 11 Apr 2010 16 ...
Tim's user avatar
  • 32.8k
7 votes
2 answers
14k views

How to change the date format in Nautilus list columns?

The date format of the date columns is really long "Tue 12 June 2012 17:12:34 PHT". I would prefer a shorter version, e.g. 12/06/2012 or 12/06/2012 17:12. I tried to change it in Settings/Language ...
Filbuntu's user avatar
  • 13k
4 votes
1 answer
4k views

How to maintain a file's 'last modified' date?

I'm copying files and folders over from one filesystem to another (both are ext3) via cp in the terminal. The 'date modified' on all of the files are being changed to the current time although I am ...
Will's user avatar
  • 706
2 votes
1 answer
3k views

Change Ubuntu time and date for specific application

Is there any application which can manipulate time and date for any specific application? If I change date and time of system then browser can't let me access internet. Any help will be appreciated. ...
Mihir's user avatar
  • 31
2 votes
2 answers
3k views

How do you Set Custom Time in Ubuntu?

I want to set a custom time in ubuntu 14.04 lets say : 8 OCT 2010 18:00:00 wrkstn@wrkstn-VirtualBox:~$ sudo date --set="8 OCT 2006 18:00:00" Sun Oct 8 18:00:00 PETST 2006 wrkstn@wrkstn-VirtualBox:~...
Rahul V Sharma's user avatar
177 votes
7 answers
604k views

How can I display the current time & date setting?

How can I display the current time configuration, like the time zone, in Ubuntu?
usef_ksa's user avatar
  • 1,873
29 votes
3 answers
17k views

Ubuntu 18.04 show date and time on every screen

Since the update to 18.04 from 16.04, i see top bar with date and time only on the primary screen of my notebook. On the other screens the top bar is not shown. Another anoying thing is i see only ...
strader's user avatar
  • 413
21 votes
1 answer
50k views

How to add n hours to a specified time?

I'd like to have a time, say 6:45am, and add an amount of hours, say 1.45 hours, to result in another time. So I'd like to add 1.45 hours to 6:45am to get another time. Is there a command line utile ...
Bulrush's user avatar
  • 772
17 votes
4 answers
80k views

mkdir with date name? [duplicate]

In Linux shell, am I able to create a directory but the name would be a string returned from another program? And if I am able, how to? In particular I am asked to create a new directory in my Home, ...
Mr T's user avatar
  • 323
7 votes
4 answers
9k views

Ubuntu keeps resetting time to -3 hours

I have a dual boot system with Win 7 / Ubuntu 13.04. For some reason, Ubuntu resets the system time to -3 hours regardless of timezone settings. I thought that this was UTC problem, but the problem ...
krax's user avatar
  • 124
5 votes
1 answer
695 views

Last access timestamp updated every 24 hours

The last access timestamp of my files is updated every 24 hours whenever I access an files. E.g. I type "ls" and if the last access timestamp of the file is older than 24 it is updated to the current ...
Stefan's user avatar
  • 59
5 votes
3 answers
2k views

How to display date under time in GNOME

In Ubuntu 18.04, my current desktop looks like this: How do I display date under time in GNOME panel as below?
Sathish Kanna's user avatar
3 votes
2 answers
5k views

Date and time panel is greyed out, how do I restore it?

Date and time is showing in the login screen (unity-greeter) but not when I login to my session. When I go to date and time settings the panel is all grey : Any idea how to recover from this ?
Victor Lamoine's user avatar
2 votes
1 answer
67 views

What files get edited when the system time changes?

If the system time is changed on Linux, what files get edited? I know the timezone is kept in etc/timezone but is there anything if the timezone is not changed, but the time is?
Sally's user avatar
  • 43
1 vote
7 answers
17k views

"Date and Time Settings" GUI in Ubuntu 14.04 is not working?

I have been trying to access the Date and Time setting in my Ubuntu 14.04 to modify the time (which is wrong). I click in the hour in the top-right corner of the top bar, and then in "Date & Time ...
toto_tico's user avatar
  • 265
84 votes
8 answers
223k views

How to fix wrong system time and date?

I just ran a clean install of 12.10 on my sys76 laptop. Time and date reads: 19:36 31 december 1969, even though it is: 13:29 07 november 2012. I have it set for my location and it won't change ...
dysonsphere's user avatar
68 votes
7 answers
41k views

How do I show date next to time in the panel with gnome-shell?

I would like to show the date in the bar up the top there (next to the time). I can not see any obvious way to enable this.
wim's user avatar
  • 12.7k
23 votes
2 answers
48k views

Where does ntpdate get its settings from and what is the "no servers can be used" error about?

When I run ntpdate on its own, I get the following output: 8 Jun 15:47:46 ntpdate[31251]: no servers can be used, exiting If I run it with the -q ntp.ubuntu.com switch, it seems to query just fine....
wilhil's user avatar
  • 1,785
11 votes
7 answers
14k views

Thunderbird date format?

I have ubuntu 10.04 running Thunderbird 14.0 How do I change the date format to international standard? (eg; 2012-07-26) My system date already shows this format.
James's user avatar
  • 111
9 votes
2 answers
3k views

Fuzzy-Clock for Ubuntu

A long while ago, I had a clock set to say things like morning, day, evening, night, for time in a panel app. Broad stroke, not very specific, It might have been a KDE desktop. I am in Ubuntu Mate now,...
j0h's user avatar
  • 14.8k
6 votes
4 answers
12k views

Date format in UNIX

How can I show date in YYYY-MM-DDTHH:MM:SS+ZZZZ format in LINUX? I need to write the creation date of a file say file1 in another file say file2 in given format. Help me to achieve this.
Abhishek Kapoor's user avatar
6 votes
2 answers
5k views

Seconds, minutes and hours since a date

I would like to create a script that tells you how many seconds, minutes and hours have passed since a date (much like the +%s date command format). How can I subtract the current date with a specific ...
user avatar
5 votes
1 answer
21k views

How to remove only files created before a specific date and time

l would like to remove from my directory files which have been created before 04/29/2018 at 4:00 pm. Thank you
vincet's user avatar
  • 789
4 votes
1 answer
2k views

Prevent clock from advancing to a system time after Ubuntu Server build time

I have an Ubuntu Server 18.04.1 LTS in a lab environment where I need to set the date a couple of years back in time (e.g. 2016-04-22). I can set the older date/time without any issues but the OS ...
Kenzie MacNeil's user avatar
3 votes
2 answers
2k views

How to show current timezone near time indicator in the menu bar?

How to show the current timezone near time and date in the menu bar in Ubuntu 16.10? This should be relevant for the other versions also. It is a very missing feature, you can easily be confused ...
vstepaniuk's user avatar
3 votes
1 answer
2k 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&...
shook_one's user avatar
  • 289
3 votes
2 answers
20k views

How can I change the default date format (using LC_TIME)?

How do I change the format of date command by modifying LC_TIME in locale? Currently the day of month uses %e format. I need it to be displayed in %d format. Below is the Current Format: #date Thu ...
Gowtham's user avatar
  • 311
2 votes
1 answer
86 views

clock dissapeared from menu

As you can see from the screenshot, I am missing date and time from top menu. Is it stupid april fools joke or...? I am clueless how to put it back. Any help would be appreciated. EDIT Tried the ...
Pavel Janicek's user avatar
2 votes
0 answers
268 views

How do I change to ISO 8601 date format? [duplicate]

I want to use the ISO 8601 date format system wide with Ubuntu 12.04. What is the best way to accomplish this?
mooto85's user avatar
  • 21
2 votes
1 answer
415 views

A command for KDE short date format

By the command $date the time and date of the system (according to local place) is printed. Is there a command that outputs Kde's short date format in terminal? The date in KDE also depends on a ...
Minimus Heximus's user avatar
1 vote
2 answers
6k views

How can I change the default date output format for the date command?

I've used RedHat servers before and now I've just installed Ubuntu Server. I noticed that the date format in Ubuntu logs is different from in RedHat. When I use the date command it showd Wed May ...
chapman's user avatar
  • 21
1 vote
4 answers
3k views

How can I change the en_AU locale to 12 hour format?

I've noticed that the en_AU locale is defaulting to 24 hour time, it should be 12 hour as this is most commonly used in Australia. How can this be adjusted?
Alex's user avatar
  • 11
1 vote
1 answer
4k views

Arabic numbers/dates showing in various places

I've just installed Ubuntu 14.04 LTS. I live in the Middle East, and so I set my country location (in the ME) and set my language to English (UK). Although I'm now getting Arabic numbers and dates ...
Exbi's user avatar
  • 113
0 votes
0 answers
44 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&...
Jamie Hutber's user avatar
0 votes
0 answers
145 views

How do you prevent openvpn clients from changing the system clock?

I'm using state based routing using iptables and a single user on a shared machine sometimes uses a VPN to get resources not available in our physical location. However, this is very annoying because, ...
Rusty Weber's user avatar
0 votes
1 answer
355 views

date command output format

I have just installed ubuntu server 19.10. When I enter the date command I get the following output Sun 10 Nov 2019 05:16:05 PM AEDT My old server running 18.04 gives this output Sun Nov 10 17:...
dBags's user avatar
  • 111
0 votes
1 answer
2k views

Command inside another command - Bash

I know how to run a simple command inside another command, but in my case is special. My command contains " (date "+%Y-%m-%d").I need to display my log via 1 command. If I do this date &...
code-8's user avatar
  • 195