date: illegal option — d, Find difference between two dates
问题 I am trying to convert timestamps read from a file from string to date format so that I can find the difference of 2 dates/timestamps. most of the threads/discussions on web show usage of date argument '-d' to convert the string to epoch or to find the difference of two timestamps Find difference between two dates in bash But it looks like my environment/OS doesn't support -d date argument. Below are the details of my env: bash --version GNU bash, version 3.2.52(1)-release (i386-pc-solaris2