equal
deleted
inserted
replaced
86 public static final long fileTimeToUnixTime(FileTime ftime) { |
86 public static final long fileTimeToUnixTime(FileTime ftime) { |
87 return ftime.to(TimeUnit.SECONDS); |
87 return ftime.to(TimeUnit.SECONDS); |
88 } |
88 } |
89 |
89 |
90 /** |
90 /** |
91 /* |
|
92 * Converts DOS time to Java time (number of milliseconds since epoch). |
91 * Converts DOS time to Java time (number of milliseconds since epoch). |
93 */ |
92 */ |
94 public static long dosToJavaTime(long dtime) { |
93 public static long dosToJavaTime(long dtime) { |
95 int year = (int) (((dtime >> 25) & 0x7f) + 1980); |
94 int year = (int) (((dtime >> 25) & 0x7f) + 1980); |
96 int month = (int) ((dtime >> 21) & 0x0f); |
95 int month = (int) ((dtime >> 21) & 0x0f); |