8000
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 5bf68db commit 855ec8bCopy full SHA for 855ec8b
src/libstd/time.rs
@@ -271,15 +271,14 @@ impl SystemTime {
271
/// # Examples
272
///
273
/// ```no_run
274
- /// #![feature(assoc_unix_epoch)]
275
/// use std::time::SystemTime;
276
277
/// match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
278
/// Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
279
/// Err(_) => panic!("SystemTime before UNIX EPOCH!"),
280
/// }
281
/// ```
282
- #[unstable(feature = "assoc_unix_epoch", issue = "49502")]
+ #[stable(feature = "assoc_unix_epoch", since = "1.28.0")]
283
pub const UNIX_EPOCH: SystemTime = UNIX_EPOCH;
284
285
/// Returns the system time corresponding to "now".
0 commit comments