How to convert string param to date var in Hewlett-Packard UNIX (HP-UX)?
date -d
date: illegal option -- d
Can not use -d
I need the following:
the_date=`date`
date_in_seconds=$($the_date+"%s")
Any insight?
How to convert string param to date var in Hewlett-Packard UNIX (HP-UX)?
date -d
date: illegal option -- d
Can not use -d
I need the following:
the_date=`date`
date_in_seconds=$($the_date+"%s")
Any insight?
After a bit of googling I see that it is a relatively common question that has a two main answers:
perl -e 'print time(), "\n"'
(several references amongst others)EDIT: although I worry I've misunderstood your question...