find last modification time of file in timestamp format in solaris-urgent

how to find last modification time of a file in timestamp format in solaris?in linux i could do it by help of stat command.but stat command doesnot work in solaris.please help.its urgently needed.Message was edited by: rahularora
[264 byte] By [rahularoraa] at [2007-11-27 5:04:41]
# 1

I don't know what 'timestamp format' means.

Usually 'ls -l' is sufficient. You could also get a copy of 'stat' for solaris or compile it.

Finally, I might use 'perl' for more information on a file.

perl -le 'print scalar localtime ((lstat shift)[9])' <filename>

--

Darren

Darren_Dunhama at 2007-7-12 10:23:04 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
You can write your own application check fstat. or as stated in previous post u can use ls -l :)regardsMipko
mipkonijea at 2007-7-12 10:23:04 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...