std::time module
E440679
The std::time module in Rust’s standard library provides types and utilities for working with time durations and system time.
Observed surface forms (6)
| Surface form | Occurrences |
|---|---|
| std::time | 0 |
| std::time::Duration | 0 |
| std::time::SystemTime | 0 |
| std::time::Instant | 0 |
| std::time::UNIX_EPOCH | 0 |
| std::time::SystemTimeError | 0 |
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf |
Rust error type
ⓘ
Rust standard library module ⓘ Rust struct ⓘ Rust struct ⓘ Rust struct ⓘ std::time::SystemTime ⓘ |
| canBeComparedWith | std::time::SystemTime ⓘ |
| doesNotProvide |
calendar date handling
ⓘ
time zone handling ⓘ |
| epochStart | 1970-01-01T00:00:00Z ⓘ |
| hasAssociatedConstant | UNIX_EPOCH ⓘ |
| hasMethod |
as_secs
ⓘ
duration_since ⓘ elapsed ⓘ from_micros ⓘ from_millis ⓘ from_nanos ⓘ from_secs ⓘ now ⓘ subsec_nanos ⓘ |
| language | Rust NERFINISHED ⓘ |
| modulePath | std::time ⓘ |
| occursWhen | earlierSystemTimeSubtractedFromLater ⓘ |
| partOf | Rust standard library NERFINISHED ⓘ |
| providesFunctionality |
monotonic time measurement
ⓘ
system time handling ⓘ time duration handling ⓘ |
| providesType |
std::time::Duration
ⓘ
std::time::Instant ⓘ std::time::SystemTime ⓘ std::time::SystemTimeError ⓘ std::time::UNIX_EPOCH ⓘ |
| represents |
Unix epoch start
ⓘ
monotonic time point ⓘ span of time ⓘ system wall-clock time ⓘ |
| stableSince | Rust 1.0.0 NERFINISHED ⓘ |
| supportsOperation |
addition
ⓘ
additionWithDuration ⓘ differenceBetweenInstants ⓘ division by scalar ⓘ multiplication by scalar ⓘ subtraction ⓘ subtractionWithDuration ⓘ |
| threadSafety | types are generally Send and Sync ⓘ |
| useCase | measuring durations ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.