{"action":"created","issue":{"url":"https://api.github.com/repos/mirage/mirage/issues/442","labels_url":"https://api.github.com/repos/mirage/mirage/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/mirage/mirage/issues/442/comments","events_url":"https://api.github.com/repos/mirage/mirage/issues/442/events","html_url":"https://github.com/mirage/mirage/issues/442","id":100020085,"number":442,"title":"Improve the CLOCK API","user":{"login":"samoht","id":103693,"avatar_url":"https://avatars.githubusercontent.com/u/103693?v=3","gravatar_id":"","url":"https://api.github.com/users/samoht","html_url":"https://github.com/samoht","followers_url":"https://api.github.com/users/samoht/followers","following_url":"https://api.github.com/users/samoht/following{/other_user}","gists_url":"https://api.github.com/users/samoht/gists{/gist_id}","starred_url":"https://api.github.com/users/samoht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoht/subscriptions","organizations_url":"https://api.github.com/users/samoht/orgs","repos_url":"https://api.github.com/users/samoht/repos","events_url":"https://api.github.com/users/samoht/events{/privacy}","received_events_url":"https://api.github.com/users/samoht/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mirage/mirage/labels/breaks%20compatibility","name":"breaks compatibility","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-10T09:39:39Z","updated_at":"2015-09-15T22:01:37Z","closed_at":null,"body":"Now that we have:\r\n\r\n- [ptime](https://github.com/dbuenzli/ptime)\r\n- [mtime](https://github.com/dbuenzli/mtime)\r\n\r\nwe should use them."},"comment":{"url":"https://api.github.com/repos/mirage/mirage/issues/comments/140559272","html_url":"https://github.com/mirage/mirage/issues/442#issuecomment-140559272","issue_url":"https://api.github.com/repos/mirage/mirage/issues/442","id":140559272,"user":{"login":"dbuenzli","id":485596,"avatar_url":"https://avatars.githubusercontent.com/u/485596?v=3","gravatar_id":"","url":"https://api.github.com/users/dbuenzli","html_url":"https://github.com/dbuenzli","followers_url":"https://api.github.com/users/dbuenzli/followers","following_url":"https://api.github.com/users/dbuenzli/following{/other_user}","gists_url":"https://api.github.com/users/dbuenzli/gists{/gist_id}","starred_url":"https://api.github.com/users/dbuenzli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbuenzli/subscriptions","organizations_url":"https://api.github.com/users/dbuenzli/orgs","repos_url":"https://api.github.com/users/dbuenzli/repos","events_url":"https://api.github.com/users/dbuenzli/events{/privacy}","received_events_url":"https://api.github.com/users/dbuenzli/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T22:01:37Z","updated_at":"2015-09-15T22:01:37Z","body":"> reached the conclusion that implementing current_tz_offset_s on Xen isn't possible\r\n\r\nIf there's no way of getting that from the VM you can always return 0 for now. For the unix backend you can have a look at [here](https://github.com/dbuenzli/bos/blob/215b0b8c310aeaac56ecb7dba04004ab070b9eac/src/bos.ml#L44-L55).\r\n\r\n> I think the best way to provide local time offsets from UTC is via a library that parses the IANA zoneinfo files.\r\n\r\nThat wouldn't help you in determining what's the *system* or *user* notion of local time from a user point of view (and you want to stay away from the tz database).  \r\n\r\n"}}