Getting Epoch Time on Solaris 10 and Older
You can get the epoch time on Solaris 11 and Linux simply by running the date command:
date +'%s'
On Solaris 10 and older, you need to get creative:
/usr/bin/truss /usr/bin/date 2>&1 | nawk -F= '/^time()/ {gsub(/ /,"",$2);print $2}'
If you have to do this often, I’d suggest creating a shell script with this string and adding a soft link in /usr/bin