gas/
[deliverable/binutils-gdb.git] / bfd / vmsutil.c
index 25cd8898743a5a2dc0e293f204cc56c8229aee10..ff4383a86e2ff0643df25d393e0dc0cdffb666a1 100644 (file)
@@ -237,18 +237,13 @@ vms_file_stats_name (const char *filename,
   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;
     }
 
This page took 0.023169 seconds and 4 git commands to generate.