Lines Matching full:time
3 * time.h - NTFS time conversion functions. Part of the Linux-NTFS project.
11 #include <linux/time.h> /* For current_kernel_time(). */
19 * utc2ntfs - convert Linux UTC time to NTFS time
20 * @ts: Linux UTC time to convert to NTFS time
22 * Convert the Linux UTC time @ts to its corresponding NTFS time and return
25 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec
30 * NTFS uses Microsoft's standard time format which is stored in a s64 and is
38 * converted to 100ns intervals, and then add the NTFS time offset. in utc2ntfs()
45 * get_current_ntfs_time - get the current time in little endian NTFS format
47 * Get the current time from the Linux kernel, convert it to its corresponding
48 * NTFS time and return that in little endian format.
59 * ntfs2utc - convert NTFS time to Linux time
60 * @time: NTFS time (little endian) to convert to Linux UTC
62 * Convert the little endian NTFS time @time to its corresponding Linux UTC
63 * time and return that in cpu format.
65 * Linux stores time in a struct timespec64 consisting of a time64_t tv_sec
70 * NTFS uses Microsoft's standard time format which is stored in a s64 and is
74 static inline struct timespec64 ntfs2utc(const sle64 time) in ntfs2utc() argument
78 /* Subtract the NTFS time offset. */ in ntfs2utc()
79 u64 t = (u64)(sle64_to_cpu(time) - NTFS_TIME_OFFSET); in ntfs2utc()
81 * Convert the time to 1-second intervals and the remainder to in ntfs2utc()