Lines Matching +full:1000 +full:- +full:10000
1 // SPDX-License-Identifier: LGPL-2.0+
9 * 10/04/98: added new table-based lookup after seeing how ugly
41 if (offset == -2047) /* unspecified offset */ in udf_disk_stamp_to_time()
46 dest->tv_sec = mktime64(year, src.month, src.day, src.hour, src.minute, in udf_disk_stamp_to_time()
48 dest->tv_sec -= offset * 60; in udf_disk_stamp_to_time()
52 * recorded with bogus sub-second values. in udf_disk_stamp_to_time()
56 dest->tv_nsec = 1000 * (src.centiseconds * 10000 + in udf_disk_stamp_to_time()
59 dest->tv_nsec = 0; in udf_disk_stamp_to_time()
70 offset = -sys_tz.tz_minuteswest; in udf_time_to_disk_stamp()
72 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); in udf_time_to_disk_stamp()
76 dest->year = cpu_to_le16(tm.tm_year + 1900); in udf_time_to_disk_stamp()
77 dest->month = tm.tm_mon + 1; in udf_time_to_disk_stamp()
78 dest->day = tm.tm_mday; in udf_time_to_disk_stamp()
79 dest->hour = tm.tm_hour; in udf_time_to_disk_stamp()
80 dest->minute = tm.tm_min; in udf_time_to_disk_stamp()
81 dest->second = tm.tm_sec; in udf_time_to_disk_stamp()
82 dest->centiseconds = ts.tv_nsec / 10000000; in udf_time_to_disk_stamp()
83 dest->hundredsOfMicroseconds = (ts.tv_nsec / 1000 - in udf_time_to_disk_stamp()
84 dest->centiseconds * 10000) / 100; in udf_time_to_disk_stamp()
85 dest->microseconds = (ts.tv_nsec / 1000 - dest->centiseconds * 10000 - in udf_time_to_disk_stamp()
86 dest->hundredsOfMicroseconds * 100); in udf_time_to_disk_stamp()