Monday, November 15, 2021

[SOLVED] How to find UTC 24 hours passed between date times in linux/bash/unix?

Issue

  • Consider two UTC time stamps given. That i want to check whether they have difference in between them is more than 24 hours

Solution

Finally i made it .

scan_utc_time="$(echo ${scan_utc_time} | sed 's/[^0-9]*//g')"



Answered By - Bala Krishna