in reply to Re^2: Date to Epoch
in thread Date to Epoch

My apology

Running:

ls -oglE <file_name> | awk '{print $4":"$5}' | cut -d. -f1

will 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