My apology
Running:
ls -oglE <file_name> | awk '{print $4":"$5}' | cut -d. -f1will provide with me a date format of: 2018-03-15:09:25:15
I can then parse this data and assign it to individual variables like seconds, minutes, hours, day, month, year
But I was hoping to find a simple one line solution to take a format of "Mar 15 09:25:29 2018" and get an epoch time
In reply to Re^3: Date to Epoch
by Anonymous Monk
in thread Date to Epoch
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |