8000 time._STRUCT_TM_ITEMS · RustPython/RustPython@c9fcfc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c9fcfc8

Browse files
committed
time._STRUCT_TM_ITEMS
1 parent 36315e2 commit c9fcfc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm/src/stdlib/time.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ mod decl {
7272
.map_err(|e| vm.new_value_error(format!("Time error: {e:?}")))
7373
}
7474

75+
#[pyattr]
76+
pub const _STRUCT_TM_ITEMS: usize = 11;
77+
7578
// TODO: implement proper monotonic time for wasm/wasi.
7679
#[cfg(not(any(unix, windows)))]
7780
fn get_monotonic_time(vm: &VirtualMachine) -> PyResult<Duration> {

0 commit comments

Comments
 (0)
0