Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

std/time: Give an example to get UNIX_EPOCH in seconds #44315

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

kallisti5
Copy link
Contributor

No description provided.

@kallisti5
Copy link
Contributor Author

r? @GuillaumeGomez

@rust-highfive
Copy link
Collaborator

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

@kallisti5
Copy link
Contributor Author

rebased from PR #44301

/// match SystemTime::now().duration_since(UNIX_EPOCH) {
/// Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
/// Err(_) => panic!("SystemTime before UNIX EPOCH!"),
/// };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useless semicolon.

@GuillaumeGomez
Copy link
Member

And just push -f on your branch, no need to recreate a PR. ;)

@kallisti5 kallisti5 force-pushed the epoch-doc-example-squashed branch from 935d29e to 1c5bf24 Compare September 5, 2017 00:22
@kallisti5
Copy link
Contributor Author

Oh, I didn't realize you could force a push updating a remote branch without breaking everything at github.. neat! Done.

@GuillaumeGomez
Copy link
Member

Thanks!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Sep 5, 2017

📌 Commit 1c5bf24 has been approved by GuillaumeGomez

@arielb1 arielb1 added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Sep 5, 2017
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Sep 6, 2017
…d, r=GuillaumeGomez

std/time: Give an example to get UNIX_EPOCH in seconds
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Sep 7, 2017
…d, r=GuillaumeGomez

std/time: Give an example to get UNIX_EPOCH in seconds
bors added a commit that referenced this pull request Sep 7, 2017
@bors bors merged commit 1c5bf24 into rust-lang:master Sep 7, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants