While reading about Linux I got the following:
touch provides several options, but here is one of interest:
The -t option allows you to set the date and time stamp of the file. To set the time stamp to a specific time:
$ touch -t 03201600 myfile
This sets the file, myfile's, time stamp to 4 p.m., March 20th (03 20 1600).
Here, I am not getting the logic behind 03201600 --> 4pm, March 20th.
Welcome to Linux! You probably read that
touch
text you quoted in your question from a guide or a book.In Linux, almost every command has a "manual" that explains its options. You can view the manual page of any command by executing
man <command>
on a Linux machine.So, from the command
man touch
:So, your example:
So March 20th, 4pm (24-hour format).
If you don't have access to a Linux machine, you can view these
man
pages online from here: http://unixhelp.ed.ac.uk/CGI/man-cgi. Theman
page for the commandtouch
is found here: http://unixhelp.ed.ac.uk/CGI/man-cgi?touchThe output you posted explains the format by breaking apart the numbers as (03 20 1600):
According to
man touch
:So, your timestamp can be translated to
DD/MM hh:mm
: 20/03 16:00.Click here to convert