return 0;
#else
struct stat buff;
- struct tm *ts;
- long gmtoff;
if ((stat (filename, &buff)) != 0)
return 1;
if (cdt)
{
- ts = localtime (&buff.st_mtime);
- gmtoff = ts->tm_gmtoff;
- *cdt = (long long) (((buff.st_mtim.tv_sec + gmtoff) * VMS_GRANULARITY_FACTOR)
- + (buff.st_mtim.tv_nsec / 100))
+ *cdt = (long long) (buff.st_mtime * VMS_GRANULARITY_FACTOR)
+ VMS_EPOCH_OFFSET;
}