Xref: utzoo comp.unix.questions:27661 comp.unix.programmer:735 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!bruce!monu1!monu6!vac269k From: vac269k@monu6.cc.monash.edu.au (vacation) Newsgroups: comp.unix.questions,comp.unix.programmer Subject: What does the value returned by st_mtime in the stat structure mean? Keywords: stat Message-ID: <1990Dec21.041634.12760@monu6.cc.monash.edu.au> Date: 21 Dec 90 04:16:34 GMT Followup-To: poster Organization: Caulfield Campus, Monash University, Melb., Australia. Lines: 20 I am writing a UNIX system program to retrieve file information using the stat system call. In my code I have the following lines: struct stat statbuf; stat (filename,&statbuf); printf ("%ld",statbuf.st_mtime); This prints out a number like 661742557 for the time the contents of the file were last modified. What does this number mean and how would I convert to more intelligible format (such as day/month/year hour:minute) if possible ? Any comments would be much appreciated. Ralph Blake Melbourne, Australia vac269k@monu6.cc.monash.edu.au