0

I want to identify the working hours between the below two different dates in bash?

date1="2020-04-17 20:09:42"
date2="2020-04-28 20:40:10"

difference= <should be in hours>
  • Please add your desired output (no description) for that sample input to your question (no comment). – Cyrus Jun 14 '20 at 06:14
  • Define *working hours* in your question. Do you have access to GNU date command? – Cyrus Jun 14 '20 at 06:15

0 Answers0