{"action":"created","issue":{"url":"https://api.github.com/repos/dm3/clojure.java-time/issues/23","repository_url":"https://api.github.com/repos/dm3/clojure.java-time","labels_url":"https://api.github.com/repos/dm3/clojure.java-time/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/dm3/clojure.java-time/issues/23/comments","events_url":"https://api.github.com/repos/dm3/clojure.java-time/issues/23/events","html_url":"https://github.com/dm3/clojure.java-time/issues/23","id":324202609,"number":23,"title":"How to go from \"10:00\" strings to inverval?","user":{"login":"WorldsEndless","id":5042778,"avatar_url":"https://avatars3.githubusercontent.com/u/5042778?v=4","gravatar_id":"","url":"https://api.github.com/users/WorldsEndless","html_url":"https://github.com/WorldsEndless","followers_url":"https://api.github.com/users/WorldsEndless/followers","following_url":"https://api.github.com/users/WorldsEndless/following{/other_user}","gists_url":"https://api.github.com/users/WorldsEndless/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldsEndless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldsEndless/subscriptions","organizations_url":"https://api.github.com/users/WorldsEndless/orgs","repos_url":"https://api.github.com/users/WorldsEndless/repos","events_url":"https://api.github.com/users/WorldsEndless/events{/privacy}","received_events_url":"https://api.github.com/users/WorldsEndless/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T22:04:51Z","updated_at":"2018-05-18T14:31:13Z","closed_at":"2018-05-18T14:31:13Z","author_association":"NONE","body":"I realize this is not the ideal place for questions, but searching for the past hour is not getting me an answer. Suppose I am provided with three strings `[\"10:00\" \"12:00\" \"17:00\"]`.  I need to be able to produce the right data structures to determine if one is within the interval of the other two; however, for the life of me I can't figure out how to do this. Doing `local-time` on any of them works, but intervals require instants and instants can't be created that way. Help would be much appreciated. "},"comment":{"url":"https://api.github.com/repos/dm3/clojure.java-time/issues/comments/390225898","html_url":"https://github.com/dm3/clojure.java-time/issues/23#issuecomment-390225898","issue_url":"https://api.github.com/repos/dm3/clojure.java-time/issues/23","id":390225898,"user":{"login":"WorldsEndless","id":5042778,"avatar_url":"https://avatars3.githubusercontent.com/u/5042778?v=4","gravatar_id":"","url":"https://api.github.com/users/WorldsEndless","html_url":"https://github.com/WorldsEndless","followers_url":"https://api.github.com/users/WorldsEndless/followers","following_url":"https://api.github.com/users/WorldsEndless/following{/other_user}","gists_url":"https://api.github.com/users/WorldsEndless/gists{/gist_id}","starred_url":"https://api.github.com/users/WorldsEndless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WorldsEndless/subscriptions","organizations_url":"https://api.github.com/users/WorldsEndless/orgs","repos_url":"https://api.github.com/users/WorldsEndless/repos","events_url":"https://api.github.com/users/WorldsEndless/events{/privacy}","received_events_url":"https://api.github.com/users/WorldsEndless/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T14:31:13Z","updated_at":"2018-05-18T14:31:13Z","author_association":"NONE","body":"Ah; I didn't realize that \"local-time\" in Java parlance meant \"no timezone\" as opposed to \"local timezone'. I solved this as follows:\r\n\r\n```\r\n(defn instant-from-hour\r\n  \"example of constructing a 10:00i nstant\"\r\n  [hour-string]\r\n  (-> hour-string\r\n      time/local-time\r\n      (.atDate (time/local-date))\r\n      (.atZone (java.time.ZoneId/of \"Etc/GMT-7\"))\r\n      (time/instant)))\r\n```\r\n"}}
{"actor":{"display_login":"WorldsEndless"}}