{"action":"created","issue":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/183","labels_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/183/comments","events_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/183/events","html_url":"https://github.com/KSP-KOS/KOS/issues/183","id":37150259,"number":183,"title":"Timespan appears to have no 'constructor' function.","user":{"login":"Dunbaratu","id":5216848,"avatar_url":"https://avatars.githubusercontent.com/u/5216848?v=3","gravatar_id":"","url":"https://api.github.com/users/Dunbaratu","html_url":"https://github.com/Dunbaratu","followers_url":"https://api.github.com/users/Dunbaratu/followers","following_url":"https://api.github.com/users/Dunbaratu/following{/other_user}","gists_url":"https://api.github.com/users/Dunbaratu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dunbaratu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dunbaratu/subscriptions","organizations_url":"https://api.github.com/users/Dunbaratu/orgs","repos_url":"https://api.github.com/users/Dunbaratu/repos","events_url":"https://api.github.com/users/Dunbaratu/events{/privacy}","received_events_url":"https://api.github.com/users/Dunbaratu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KSP-KOS/KOS/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-07-04T08:30:06Z","updated_at":"2015-06-06T05:26:58Z","closed_at":null,"body":"In going through all the documents trying to explain things better, I've discovered that the Timespan doesn't seem to have the same sorts of constructor function everything else has.\r\n\r\nIn other words, I can tell people \"You can make a maneuver node with SET X TO NODE(a,b,c,d)\" and \"You can make a Vector with SET VEC TO V(a,b,c)\" and so on…\r\n\r\nbut I can't say \"You can make a Time with SET T to …..uh… to……………..\"\r\n\r\nIt seems the only variable of type Timespan that exists in the entire kOS system is the current-time bound to the identifier TIME.\r\n\r\nWhich is weird because the Timespan class has lots of work done to enable the arithmetic operators to add two Timespans' together, or subtract them…. but…the only way they'll ever be used is when it's Timespan + double or Timespan + integer, because Timespan + Timespan presumes there's two different timespans in users' variables.\r\n\r\nI think there should exist functions that return Timespans, like:\r\n\r\n* SET T TO DATETIME( year, day, hour, minute, second).\r\n* SET T2 TO TIME + T.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/comments/109531105","html_url":"https://github.com/KSP-KOS/KOS/issues/183#issuecomment-109531105","issue_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/183","id":109531105,"user":{"login":"hvacengi","id":2975036,"avatar_url":"https://avatars.githubusercontent.com/u/2975036?v=3","gravatar_id":"","url":"https://api.github.com/users/hvacengi","html_url":"https://github.com/hvacengi","followers_url":"https://api.github.com/users/hvacengi/followers","following_url":"https://api.github.com/users/hvacengi/following{/other_user}","gists_url":"https://api.github.com/users/hvacengi/gists{/gist_id}","starred_url":"https://api.github.com/users/hvacengi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvacengi/subscriptions","organizations_url":"https://api.github.com/users/hvacengi/orgs","repos_url":"https://api.github.com/users/hvacengi/repos","events_url":"https://api.github.com/users/hvacengi/events{/privacy}","received_events_url":"https://api.github.com/users/hvacengi/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T05:26:58Z","updated_at":"2015-06-06T05:26:58Z","body":"Now that we have the ability to have variable argument counts, we could create 2 constructors: `datetime(year, day, hour, minute, second)` (as @Dunbaratu listed above) and `datetime(totalseconds)`.  That gives an easy way to do both epoch and to create a timespan object based on `datetime(time:seconds + x)` (not that I'm sure what good that last scenario does for us, but it would be a valid use)."}}