| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "sflfile.h" time_t get_file_time ( const char *filename)
Returns the modification time of the specified file or directory. The returned time is suitable for feeding to localtime().
{ struct stat stat_buf; ASSERT (filename); if (stat ((char *) filename, &stat_buf) == 0) return (stat_buf.st_mtime > 0? stat_buf.st_mtime: 0); else return (0); }
| << | < | > | >> |
![]() |