We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c865a commit 91ac5f5Copy full SHA for 91ac5f5
library/std/src/sys/pal/wasip2/time.rs
@@ -31,6 +31,12 @@ impl Instant {
31
}
32
33
impl SystemTime {
34
+ #[unstable(feature = "time_systemtime_limits", issue = "none")]
35
+ pub const MAX: SystemTime = SystemTime(Duration::MAX);
36
+
37
38
+ pub const MIN: SystemTime = SystemTime(Duration::ZERO);
39
40
pub fn now() -> SystemTime {
41
let now = wasip2::clocks::wall_clock::now();
42
SystemTime(Duration::new(now.seconds, now.nanoseconds))
0 commit comments