the "date" tag is used to classify questions about date/calendar/time manipulation, visualisation, conversion... on Unix-like systems.

learn more… | top users | synonyms

1
vote
2answers
155 views

How to get proper format from date for the touch -A argument?

I would like to change all of the attribute times of some files to the immediate date. It appears that I would need to use touch -A * (more or less; realizing that I am going to use a more complex ...
0
votes
1answer
127 views

Modify date in email header using script with mailx

I am trying to modify a script which grabs data from a database and puts it into the message of an email which is then sent out using mailx. What I need to do is grab the date which is in the first ...
0
votes
1answer
558 views

Bash script, ask for user input, to change a directory, sub directorys, and file's mtime atime linux recursively

Using GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) I am a bash scripting novice, not sure where to begin except at shebang #!. The following command. touch -a -m -t 201501010000.00 ...
3
votes
0answers
78 views

Best practice to customize date/time format system-wide?

I'd like to customize exclusively the date and time format for my system, while sticking to the rest of the locale as is. I know that environment variable LC_TIME will make it possible to customize ...
3
votes
0answers
238 views

Why does the syslog timestamp not include a year?

I am planning to store some of my log messages for more than a year, but the syslog timestamp description from RFC3164 does not include a year in the timestamp portion of a log entry. An example ...
3
votes
0answers
88 views

How do I recursively set the date created attribute to the date modified attribute on NTFS-3G?

In my first question, I asked how to get the "Date created" field in NTFS-3G. Now, that I know I can get the "Date created", I have started adding files onto my NTFS-3G partition and would like to set ...
1
vote
0answers
17 views

date/time setting does not work after unplugging power adapter or sudden power cut

For some reason, I want to configure the date/time in my Linux (CentOS 6.5) to be different from the REAL date/time, but the setting won't work if I turn my computer(desktop not laptop if this ...
1
vote
0answers
154 views

Changing the date format of auth.log

I was looking to change the date format in which auth.log logs information. I could not find a way to do it. Is there a method to do this? My system uses rsyslog.
0
votes
0answers
27 views

date advancing quickly ubuntu 14

after an upgrade of my server from ubuntu 12.04 LTS to ubuntu 14.04 LTS my system date is advancing quickly (taking 1h every 10 minutes). I tryied to install an ntp server to correct date but no way ...
0
votes
0answers
54 views

reading dates from process substitution using awk. Issue with field separator, splitting tokens incorrectly

I have the following code, thanks to @Janis for the help with the process substitution. Also, apologies for creating a new question, I haven't received any recent replies on the thread of my previous ...
0
votes
0answers
46 views

Get first day of the month

I need to get the first day of the month in this format "%y%m%d" or 150301 I can get the current day in this format: date +"%y%m%d" But the first day of the month is a lot trickier. Any thoughts? ...
0
votes
0answers
71 views

timedatectl not persisting time when set manually

Configuration before any attempts to modify it as per timedatectl: Then, I set the time manually timedatectl --adjust-system-clock set-time "2010-04-20 04:30:50": Nice, works! Now, I rerun ...