Finding the modified date time of a file

Hi,

I am new bie to Unix. Might be a simple question I am asking.

I want to find the last modified time of a file and find the difference between the currrent time and the last modified time. Appreciate, if someone can throw some light on what commands can be used.

Cheers,
James

Well, stat() tells you the mtime in UNIX second GMT since 1970, and time() gives the time in same, and the ls and date commands use them. Also, there is a stat command for mtime:
Man Page for stat (All Section 1) - The UNIX and Linux Forums

A lot of the uses for these times are covered by the find -mtime option and the find -newer option with a marker file you 'touch'.

What opaerating System and version are you running? It matters.