Lines Matching refs:time
2 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project.
25 #include <linux/time.h> /* For current_kernel_time(). */
33 * utc2ntfs - convert Linux UTC time to NTFS time
34 * @ts: Linux UTC time to convert to NTFS time
36 * Convert the Linux UTC time @ts to its corresponding NTFS time and return
39 * Linux stores time in a struct timespec consisting of a time_t (long at
44 * NTFS uses Microsoft's standard time format which is stored in a s64 and is
52 * converted to 100ns intervals, and then add the NTFS time offset.
59 * get_current_ntfs_time - get the current time in little endian NTFS format
61 * Get the current time from the Linux kernel, convert it to its corresponding
62 * NTFS time and return that in little endian format.
70 * ntfs2utc - convert NTFS time to Linux time
71 * @time: NTFS time (little endian) to convert to Linux UTC
73 * Convert the little endian NTFS time @time to its corresponding Linux UTC
74 * time and return that in cpu format.
76 * Linux stores time in a struct timespec consisting of a time_t (long at
81 * NTFS uses Microsoft's standard time format which is stored in a s64 and is
85 static inline struct timespec ntfs2utc(const sle64 time)
89 /* Subtract the NTFS time offset. */
90 u64 t = (u64)(sle64_to_cpu(time) - NTFS_TIME_OFFSET);
92 * Convert the time to 1-second intervals and the remainder to