Unix Timestamp Wall Clock
To compare two dates in bash you can use the unix timestamp value of both date using the date command line or the printf method and a bash if statement with a bash arithmetic expansion or by using a lexicographical comparison of the two dates string by using the double square bracket conditional construct.
Unix timestamp wall clock.
Source : pinterest.com