Shell script to calculate difference between 2 dates

shell script to calculate difference between 2 dates

some hints for you:

calculate by epoc

Check this thread created by Perderabo

Or this thread.
Using ksh printf builtin
or
shell function
or
using GNU date command
or
Perl