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

Function current_time_t

crates/vm/src/stdlib/time.rs:1143–1145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1141
1142 #[cfg_attr(target_env = "musl", allow(deprecated))]
1143 pub(super) fn current_time_t() -> time_t {
1144 unsafe { libc::time(core::ptr::null_mut()) }
1145 }
1146
1147 #[cfg_attr(target_env = "musl", allow(deprecated))]
1148 pub(super) fn gmtime_from_timestamp(

Callers 5

gmtimeFunction · 0.85
localtimeFunction · 0.85
asctimeFunction · 0.85
ctimeFunction · 0.85
strftimeFunction · 0.85

Calls 1

timeFunction · 0.70

Tested by

no test coverage detected