Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 16492  / 2 Years ago, sat, september 17, 2022, 8:34:09

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.


More From » timestamp

 Answers
0

The output you posted explains the format by breaking apart the numbers as (03 20 1600):



03 - March
20 - 20th
1600 - 4:00 PM (24-hour clock, where 0000 is midnight)

[#23349] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
theurn

Total Points: 30
Total Questions: 110
Total Answers: 111

Location: Bahrain
Member since Fri, Sep 16, 2022
2 Years ago
;