Click to See Complete Forum and Search --> : Finding modification time (year, month, day , hour, min, sec) of file in solaris


sateeshk754
04-23-2007, 10:04 AM
Hi,
I know how to display full modification time in linux using
ls -l --time-style="+%Y-%m-%d %H:%M:%S"

But in solaris I am still unable to find the required command.
I will be greatful if someone provides the command.
Thank you,
Sateesh.

mrrangerman43
04-23-2007, 12:18 PM
time
times
timex

sateeshk754
04-23-2007, 12:27 PM
Sorry I forgot....I mean last modification time of file.

ghostdog74
04-24-2007, 01:59 AM
solaris doesn't have GNU date (from previous post) or ls so you can't use those options. If you can't install any of these tools on your machine, AFAIK, the closest you can get is perl. in perl there are time(), localtime() and others. pls check your perl docs