3030
3131/**
3232 * Helps use {@link FileTime} and interoperate Date and NTFS times.
33+ * <p>
34+ * An NTFS file time is a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since 12:00 A.M. January 1, 1601 Coordinated
35+ * Universal Time (UTC). This is the offset of Windows time 0 to Unix epoch in 100-nanosecond intervals.
36+ * </p>
3337 *
3438 * @since 2.12.0
39+ * @see <a href="https://learn.microsoft.com/en-us/windows/win32/sysinfo/file-times">NTFS File Times</a>
3540 */
3641public final class FileTimes {
3742
@@ -156,7 +161,7 @@ static Date ntfsTimeToDate(final BigDecimal ntfsTime) {
156161 }
157162
158163 /**
159- * Converts NTFS time (100 nanosecond units since 1 January 1601) to Java time .
164+ * Converts an NTFS time (100 nanosecond units since 1 January 1601) to a {@link Date} .
160165 * <p>
161166 * An NTFS file time is a 64-bit value for the number of 100-nanosecond intervals since 12:00 A.M. January 1, 1601 Coordinated Universal Time (UTC).
162167 * </p>
@@ -170,7 +175,7 @@ public static Date ntfsTimeToDate(final long ntfsTime) {
170175 }
171176
172177 /**
173- * Converts NTFS time (100-nanosecond units since 1 January 1601) to a FileTime.
178+ * Converts an NTFS time (100-nanosecond units since 1 January 1601) to a {@link FileTime} .
174179 * <p>
175180 * An NTFS file time is a 64-bit value for the number of 100-nanosecond intervals since 12:00 A.M. January 1, 1601 Coordinated Universal Time (UTC).
176181 * </p>
@@ -195,7 +200,7 @@ static Instant ntfsTimeToInstant(final long ntfsTime) {
195200 }
196201
197202 /**
198- * Adds milliseconds to a source FileTime.
203+ * Adds milliseconds to a {@link FileTime} .
199204 *
200205 * @param fileTime The source FileTime.
201206 * @param millisToAdd The milliseconds to add.
@@ -206,7 +211,7 @@ public static FileTime plusMillis(final FileTime fileTime, final long millisToAd
206211 }
207212
208213 /**
209- * Adds nanoseconds from a source FileTime.
214+ * Adds nanoseconds to a {@link FileTime} .
210215 *
211216 * @param fileTime The source FileTime.
212217 * @param nanosToSubtract The nanoseconds to subtract.
@@ -217,7 +222,7 @@ public static FileTime plusNanos(final FileTime fileTime, final long nanosToSubt
217222 }
218223
219224 /**
220- * Adds seconds to a source FileTime.
225+ * Adds seconds to a {@link FileTime} .
221226 *
222227 * @param fileTime The source FileTime.
223228 * @param secondsToAdd The seconds to add.
@@ -238,7 +243,7 @@ public static void setLastModifiedTime(final Path path) throws IOException {
238243 }
239244
240245 /**
241- * Converts {@link FileTime} to a {@link Date}. If the provided FileTime is {@code null}, the returned Date is also {@code null}.
246+ * Converts a {@link FileTime} to a {@link Date}. If the provided FileTime is {@code null}, the returned Date is also {@code null}.
242247 *
243248 * @param fileTime the file time to be converted.
244249 * @return a {@link Date} which corresponds to the supplied time, or {@code null} if the time is {@code null}.
@@ -249,7 +254,7 @@ public static Date toDate(final FileTime fileTime) {
249254 }
250255
251256 /**
252- * Converts {@link Date} to a {@link FileTime}. If the provided Date is {@code null}, the returned FileTime is also {@code null}.
257+ * Converts a {@link Date} to a {@link FileTime}. If the provided Date is {@code null}, the returned FileTime is also {@code null}.
253258 *
254259 * @param date the date to be converted.
255260 * @return a {@link FileTime} which corresponds to the supplied date, or {@code null} if the date is {@code null}.
@@ -293,7 +298,7 @@ static long toNtfsTime(final Instant instant) {
293298 }
294299
295300 /**
296- * Converts Java time (milliseconds since Epoch) to NTFS time.
301+ * Converts a Java time (milliseconds since Epoch) to NTFS time.
297302 * <p>
298303 * An NTFS file time is a 64-bit value for the number of 100-nanosecond intervals since 12:00 A.M. January 1, 1601 Coordinated Universal Time (UTC).
299304 * </p>
@@ -308,7 +313,7 @@ public static long toNtfsTime(final long javaTime) {
308313 }
309314
310315 /**
311- * Converts {@link FileTime} to standard Unix time in seconds.
316+ * Converts a {@link FileTime} to standard Unix time in seconds.
312317 * <p>
313318 * The returned seconds value may lie out of bounds of Unix time. Check with {@link FileTimes#isUnixTime(long)}.
314319 * </p>
0 commit comments