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
0
votes
0answers
18 views

Display date number with Sun = 1 through to Sat = 7?

I use LXDE and wanted to play around a little with the digital clock widget so that it simply displays the day of the week as a number. I am based in Israel where the week starts on a Sunday. So it ...
0
votes
1answer
18 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 -...
-3
votes
0answers
90 views

Release of Ubuntu 20.04 [duplicate]

can i download the official 20.04 Ubuntu here: https://releases.ubuntu.com/focal/ Or is it just a Beta or Test-Version? I will install the final version, is this the final version
3
votes
1answer
96 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-...
1
vote
0answers
40 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?
1
vote
0answers
32 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 ...
0
votes
0answers
27 views

How can I display the time and date, from bashrc, when I open the terminal? [duplicate]

So I can display a message when open terminal. I modified the bashrc file and added something like: "Echo "Hello world!" " But I need to also add the date and time, but I don't know how. Can you ...
28
votes
3answers
5k 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?
-2
votes
2answers
55 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 ...
0
votes
2answers
70 views

Is it possible to let date return its result in ISO 8601 format by default

I want to change the behavior of the command date (possibly by setting some proper environment variable) such that it returns its output as if it was invoked as date --iso-8601=seconds Is that ...
0
votes
1answer
90 views

Bash script automatitation name change using date

I'm new to the shell/bash area. I've created this little script to change a name using the date command. The idea is to get something like this 1.txt=>2020-02.txt And it works, but I get the ...
2
votes
0answers
62 views

Ubuntu on my new Chromebook sets the time 20+ years in future

After 3-4 days since LAMP stack installation on the Chrome book, the time went to future. I don't really mind it, but MySQL community server doesn't work with years higher than 2038. Sync over ...
0
votes
1answer
37 views

How do I use a shell script to keep only the last populated value for each month in a CSV?

I have a csv file which gets updated by a cron daily and looks something like this: Date,Value 01/11/2019,123 02/11/2019,456 03/11/2019,789 ... 31/01/2020,123 01/02/2020,456 02/02/2020,789 03/02/2020,...
0
votes
0answers
93 views

Date and time on top line Ubuntu 18.04 with GNOME

I know this is simple but I forgot what I found and cannot find it again. Somewhere you can put in something like %yyyy and so forth, and construct something like: 2020 01 07 Tues 11:21 pm. ...
1
vote
2answers
79 views

How do I get date and time stored in a bash variable to update when echoing it?

I have this script: date_time=`date "+%Y%m%d%H%M%S"` script_name=`basename "$0"` echo $date_time, $script_name sleep 2 echo $date_time, $script_name exit 1 It shows me this (same time). ...
0
votes
2answers
98 views

How to calculate average of 2nd field from files?

I have a file and it consists of two fields. The first field format is "%FT%T". Sample data: 2019-01-01T00:00:00 4.8 2019-01-01T01:00:00 5.1 2019-01-01T02:00:00 5.4 2019-01-01T03:00:00 5.7 2019-...
1
vote
2answers
140 views

How to manipulate specific fields?

I have a csv file. Its line numbers are max 25. Headings are time(UTC)(1st field), latitude(2nd field), longitude(3rd field), depth (4th field), mag(5th field), place (14th field) and so forth ...
0
votes
1answer
71 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:...
1
vote
1answer
161 views

How do I change the “Last-Modified” time format from the curl-head standard output?

The following command can get the modification time of the remote file, how to modify the output time format? # curl -sI https://sgp-ping.vultr.com/vultr.com.100MB.bin | grep Last-Modified | cut -c16-...
0
votes
0answers
39 views

Evolution, change default date format

Issue In Evolution (email client), is possible to set default format date for whole application? Not Yesterday, Today, but for example YYYYMMDD, HHMMSS? Thanks. System Linux local 5.0.0-29-...
0
votes
1answer
101 views

Time runs out for Linux in 2038, what then?

Many people know Linux time is stored in Seconds since 1970. This time field explodes around the year 2032 and can no longer be used. I'm considering writing a new app that tracks the time a file was ...
2
votes
0answers
32 views

Date format isn't standardised across GNOME 3 system apps

Having just enabled the Livepatch feature, I notice that it uses yet another non-standard date format. The following system apps use these given date & time formats: Settings > Date & Time ...
0
votes
1answer
26 views

How to remove decimal date from a text file?

I have a text file where date many times appear in two formats e.g. 01.01.10 or 01.01.2010 Is there any command that will remove all the dates from a text file? Any help would be appreciated.
-1
votes
1answer
115 views

Printing next working day in bash given list of holidays

I want to generate a simple file dates.txt containing the following two dates: Todays_trading_Date Next_Trading_Date Trading days are only weekdays which do not fall on a given list of holidays ...
0
votes
1answer
29 views

Getting wrong output?

I have a bash script, where it will go inside a folder and extract the time stamping by matching the key-string. And then it will convert the date and time stamping s into standard format and perform ...
0
votes
1answer
59 views

How do I set Nautilus/Files view preferences?

Under each file icon in the file manager, I want to see its Name, Date, and Size. (I used to have these, but have lost these since doing a reinstall today). At the present I only see the file's name. ...
1
vote
0answers
2k views

Enable/disable Daylight Savings Time through command line

Note: By "Disable" daylight savings time, I mean for the system clock to ignore any time changes for daylight savings time (ie, if DST is disabled, then the clock will not "spring forward" an hour in ...
0
votes
0answers
880 views

How to set date format from 12 hour to 24 hour at the command line

I've tried to use sudo date --set="+%d+%m+%Y+%R" but this doesn't seem to SET the date format on the command line I get the following: root@rc:/home/m# date --set="+%d+%m+%Y+%R" date: invalid date ‘+...
0
votes
1answer
310 views

Should I reboot after set new timezone using timedatectl

I am on a 1604 system with timezone A, after I set the timezone to B using timedatectl set-timezone B, everything work fine.('timedatectl status' is B, 'date' command showing the right time, file time ...
1
vote
1answer
148 views

Showing the date on the system tray with the metacity flashback (ubuntu 18.04)

I'm clarifying "with metacity" because I assume that's what is disqualifying the advice I found on multiple posts. I had this fixed back on ubuntu 16 with a different pc but I can't for the life of me ...
1
vote
1answer
1k views

Compare two dates in the shell

I am trying to compare two dates in a shell script but I always get a wrong value. This is the code I am using: currenttime=$(date +%H%M%S); peak_time=$(date -d "$peak_time" '+%H%M%S'); num1=$(($...
0
votes
1answer
39 views

'date' on a command issued before midnight but ending after midnight. Today or tomorrow date?

I will be launching today a zip command naming the new file with the current date (date+\%Y\-%m\-%d.zip). The compression will probably end after midnight. Do you think the zip will be named with ...
0
votes
4answers
144 views

Measuring performance with shell

How to subtract time and show seconds or miliseconds? begin_time=$(date) run something to be (fast , simple and informal) check performance echo $(date) - $begin_time of course, it is not working, ...
7
votes
2answers
7k views

Invalid date error by date command

I want to get the date information with this command: date --date=2019-03-22 or date --date=2019/03/22 but it shows this error: date: invalid date ‘2019-03-22’ or date: invalid date ‘2019/03/...
2
votes
3answers
123 views

finding local time and date from internet using command line

How can I get time and date from internet using command line like when I type curl ipinfo.io it shows me my ip. Is there something for time and date as well ?
3
votes
1answer
147 views

How Can Krusader Prepend the File Modification Date in ISO 8601 Format to the Original File Name?

I want to prepend the file modification date in the form YYYY-MM-DD_ to each existing filename (i.e. for files only, not for directories). I have seen that krusader has a multiple file renaming ...
0
votes
2answers
91 views

Is the current Date/Time format retrievable?

My task bar shows "Sat Feb 9, 5:41 PM". Where does Ubuntu store the current Date/Time format information? Is it retrievable? I will be programming in Java, and would like to access the current format ...
0
votes
0answers
93 views

How to Change Base Folder Date

I have a backup drive and keep seven rolling backups for the past seven days using Days of the week within a Bash script. day-1/home/username/.config day-2/home/username/.config When I look at that ...
1
vote
1answer
182 views

Fix or reset “Automatic Date & Time” in Ubuntu 18.10 on XPS 9570 laptop

I have an issue where the date and time is set wrong when I use Automatic Date & Time in Settings to set the time from the internet. I've attached screen shots to show what happens when I enable ...
2
votes
2answers
1k views

How to make new file with date in it?

I can create a new file and put the date in it. touch example.txt date >> example.txt But I must create the file with the date in it the moment I created the new file. How do I do that with ...
1
vote
0answers
214 views

New Thunderbird (version 60+) to show emails' date with four-digit again?

Recently in Ubuntu 18.04 LTS we got a new Thunderbird version, jumping from version 52 something to now version 60.2.1 In the e-mail section which lists all e-mails, as well as in the individual e-...
1
vote
1answer
300 views

Why isn't the date visible on the top bar? [duplicate]

The day of the week time is displayed on the top bar... Why isn't the date displayed there, like it was in previous versions??? Why on earth would this capability have been removed???
4
votes
2answers
444 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?
2
votes
1answer
108 views

How can I have the date and time displayed in English without changing my locale settings?

I am in Nairobi, Kenya (EAT) and my Date and Time are displayed in Afaan Oromoo. I want to change this to English without having to change my locale. LANG=en_IE.UTF-8 LC_NUMERIC="om_KE.UTF-8" LC_TIME=...
4
votes
1answer
611 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 ...
1
vote
2answers
556 views

What is the date command line corresponding to var=“$(date +”%x %r %Z“)”

If I run the following command line on Ubuntu: var="$(date +"%x %r %Z")" echo var I can get the desired output. But If I just run date +%x %r %Z I will be given errors: date: extra operand ‘%r’ ...
0
votes
2answers
912 views

Timezone can't be changed

I am trying to fix an error in my timezone config on Ubuntu 18.04. When I go to the Date & Time control panel, no matter where on the map I click, it always says MDT (UTC-06). Also did the ...
0
votes
0answers
32 views

Month and Week names are lower case [duplicate]

"Dates & Times" for Brazil are lower case while other locations it is title case. I am using Ubuntu 18.04. Where should I report this issue? I still don't have an answer. Many languages have ...
-1
votes
1answer
155 views

Change default date format

I've been trying to change the default date format since past few days. Current format:- $date Mon Aug 20 14:14:43 IST 2018 Expected format:- $date Monday August 20 14:14:43 IST 2018 Current ...
2
votes
1answer
873 views

NTP summer date in Brazil is incorrect

I have a problem with an Ubuntu server hosted in Amazon services. NTP summer date is incorrect for Brazil, I followed all instructions in the documentation of Ubuntu Server and followed this guide, ...

1
2 3 4 5