{"action":"created","issue":{"url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/284","labels_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/284/comments","events_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/284/events","html_url":"https://github.com/jbeder/yaml-cpp/issues/284","id":65124242,"number":284,"title":"Implement support for timestamps","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jbeder/yaml-cpp/labels/Component-New-API","name":"Component-New-API","color":"ededed"},{"url":"https://api.github.com/repos/jbeder/yaml-cpp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-30T02:57:46Z","updated_at":"2015-04-07T06:36:40Z","closed_at":null,"body":"```\nHi,\n\nI'm currently trying to incorporate the yaml-cpp in a Qt-based project.  One \nthing I need to serialise and deserialise is timestamps.  I haven't yet \nstumbled on a way to do this.  Specifically, I'm after a QDateTime, but I can \ntolerate a time_t or some generic date/time class.\n\nThe YAML way of giving these seems to be ISO8601 format, see example 2.2 here:\nhttp://www.yaml.org/spec/1.2/spec.html#id2761292\n\nI'm guessing the way forward is to implement custom serialisation methods.  If \nI come up with something I'll post back here.\n```\n\nOriginal issue reported on code.google.com by `stua...@longlandclan.yi.org` on 10 Mar 2015 at 2:40"},"comment":{"url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/comments/90396053","html_url":"https://github.com/jbeder/yaml-cpp/issues/284#issuecomment-90396053","issue_url":"https://api.github.com/repos/jbeder/yaml-cpp/issues/284","id":90396053,"user":{"login":"c0yote","id":5217767,"avatar_url":"https://avatars.githubusercontent.com/u/5217767?v=3","gravatar_id":"","url":"https://api.github.com/users/c0yote","html_url":"https://github.com/c0yote","followers_url":"https://api.github.com/users/c0yote/followers","following_url":"https://api.github.com/users/c0yote/following{/other_user}","gists_url":"https://api.github.com/users/c0yote/gists{/gist_id}","starred_url":"https://api.github.com/users/c0yote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0yote/subscriptions","organizations_url":"https://api.github.com/users/c0yote/orgs","repos_url":"https://api.github.com/users/c0yote/repos","events_url":"https://api.github.com/users/c0yote/events{/privacy}","received_events_url":"https://api.github.com/users/c0yote/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T06:36:40Z","updated_at":"2015-04-07T06:36:40Z","body":"I'm implementing this with `std::time_point` for my own purposes.  I'll put in a pull request when finished so you can include it in the C++11 upgrade if it's not to ugly.  This bit is causing some interesting parsing adventures:\r\n\r\n    [...] serialized using a subset of the ISO8601 format and the formats \r\n    proposed by the W3C note on datetime. In addition, a more relaxed \r\n    format [...]\r\n\r\nI'm almost done with it and it supports all the format examples on the [spec page](http://yaml.org/type/timestamp.html):\r\n\r\n    canonical:        2001-12-15T02:59:43.1Z\r\n    valid iso8601:    2001-12-14t21:59:43.10-05:00\r\n    space separated:  2001-12-14 21:59:43.10 -5\r\n    no time zone (Z): 2001-12-15 2:59:43.10\r\n    date (00:00:00Z): 2002-12-14\r\n\r\nI'll write a test as well.  Is there style guide I should follow?"}}