-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make UNIX_EPOCH an associated constant of SystemTime #49501
Conversation
r=me with an unstable tracking issue |
It's not very discoverable as a separate const in the module.
a910847
to
dfde231
Compare
@bors r=alexcrichton |
📌 Commit dfde231 has been approved by |
@bors r- Failed a doc-test.
|
src/libstd/time.rs
Outdated
/// # Examples | ||
/// | ||
/// ```no_run | ||
/// use std::time::SystemTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just add #![feature(assoc_unix_epoch)]
above this.
@bors r=alexcrichton |
📌 Commit df2e238 has been approved by |
Make UNIX_EPOCH an associated constant of SystemTime It's not very discoverable as a separate const in the module. r? @alexcrichton
☀️ Test successful - status-appveyor, status-travis |
It's not very discoverable as a separate const in the module.
r? @alexcrichton