MCPcopy Index your code
hub / github.com/RustPython/RustPython / large_integer_to_time_t_nsec

Function large_integer_to_time_t_nsec

crates/common/src/fileutils.rs:162–166  ·  view source on GitHub ↗
(input: i64)

Source from the content-addressed store, hash-verified

160 }
161
162 fn large_integer_to_time_t_nsec(input: i64) -> (libc::time_t, libc::c_int) {
163 let nsec_out = (input % 10_000_000) * 100; // FILETIME is in units of 100 nsec.
164 let time_out = ((input / 10_000_000) - SECS_BETWEEN_EPOCHS) as libc::time_t;
165 (time_out, nsec_out as _)
166 }
167
168 fn file_time_to_time_t_nsec(in_ptr: &FILETIME) -> (libc::time_t, libc::c_int) {
169 let in_val: i64 = unsafe { core::mem::transmute_copy(in_ptr) };

Callers 2

attribute_data_to_statFunction · 0.85
stat_basic_info_to_statFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected