1

on Linux the syntax for date with seconds is:

date +%s
1438587288

from MAN PAGE - %s seconds since 1970-01-01 00:00:00 UTC

what is the same equivalent for Solaris?

maihabunash
  • 443
  • 1
  • 11
  • 25

1 Answers1

3

On Solaris (or any POSIX system), you can use:

nawk 'BEGIN{srand(); print srand()}'
jlliagre
  • 8,861
  • 18
  • 36