| ||||||
| 5/17 |
| 2002/9/12 [Computer/SW/Languages/Perl] UID:25856 Activity:very high |
9/11 Is there a way to get seconds from the epoch with a shell command
on Solaris? Like date +%s?
a. Solaris 2.6/7
/usr/bin/truss /usr/bin/date 2>&1 | /usr/bin/awk '/^time/ {print $NF}'
b. Solaris 8
/usr/bin/perl -e 'printf "%d\n", time;'
\_ perl -le "print time()"
\_ damn you dave, beating me to it. no, wait, that can't
be dave. he wouldn't have bothered with the ()'s.
perl -le 'print time'
--scotsman
\_ perl -le 'print $^T'
\_ is that mconst?
\_ no.
\_ install GNU date |