Equivalent of date --reference in solaris

view story

http://unix.stackexchange.com – The GNU implementation of the date command has a nice feature to show the date of the last modification of a reference file, and using the +FORMAT parameter it is easy to get the date in any format, for example: date -r /etc/passwd +%Y%m%d_%H%M%S # output in the format: 20121001_171233 Is there an equivalent in Solaris? I know I can do it using perl's stat function, but is there an easier way? (HowTos)