{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/29866","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/29866/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/29866/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/29866/events","html_url":"https://github.com/rust-lang/rust/issues/29866","id":117186631,"number":29866,"title":"Expand the std::time module","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-libs","name":"A-libs","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/B-unstable","name":"B-unstable","color":"e102d8"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-libs","name":"T-libs","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-16T18:16:54Z","updated_at":"2015-12-02T16:51:10Z","closed_at":null,"body":"Tracking issue for https://github.com/rust-lang/rfcs/pull/1288"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/161361959","html_url":"https://github.com/rust-lang/rust/issues/29866#issuecomment-161361959","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/29866","id":161361959,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T16:51:10Z","updated_at":"2015-12-02T16:51:10Z","body":"Ah ok, in that case (especially if there's no extra time zone data or anything like that) I'd just create something like:\r\n\r\n```rust\r\nlet microseconds_since_2000 = db_value;\r\nlet t2000 = UNIX_EPOCH + thirty_years;\r\nlet duration_since_2000 = Duration::new(...);\r\nlet date = t2000 + duration_since_2000;\r\n```"}}