Better HN
topnewbestaskshowjobs
Log inSign up

jgilchrist

7 karma · joined May 20, 2016 (10y ago) · 4 submissions

Submissions

comment 8y ago · link · parent

Did you look at the READMEs of those libraries? Most of the common use cases are documented fairly comprehensively there - I pulled those examples almost directly out of those documents

comment 8y ago · link · parent

  "2014-11-28T21:00:09+09:00".parse::<DateTime<FixedOffset>>()
With chrono, I think that's all you need. If you want to name the timezone you can use chrono-tz:

  let tz: Tz = "Europe/London".parse().unwrap()
  let date = "2014-11-28T21:00:09Z".parse::<DateTime<Utc>>().with_timezone(&UTC)

3.

Practical Vim, revised for Vim 8(vimcasts.org ↗)

3 points · by jgilchrist · 9y ago · discuss