{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/551","labels_url":"https://api.github.com/repos/josdejong/mathjs/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/mathjs/issues/551/comments","events_url":"https://api.github.com/repos/josdejong/mathjs/issues/551/events","html_url":"https://github.com/josdejong/mathjs/issues/551","id":127721188,"number":551,"title":"More aliases for common units","user":{"login":"hgupta9","id":6797866,"avatar_url":"https://avatars.githubusercontent.com/u/6797866?v=3","gravatar_id":"","url":"https://api.github.com/users/hgupta9","html_url":"https://github.com/hgupta9","followers_url":"https://api.github.com/users/hgupta9/followers","following_url":"https://api.github.com/users/hgupta9/following{/other_user}","gists_url":"https://api.github.com/users/hgupta9/gists{/gist_id}","starred_url":"https://api.github.com/users/hgupta9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgupta9/subscriptions","organizations_url":"https://api.github.com/users/hgupta9/orgs","repos_url":"https://api.github.com/users/hgupta9/repos","events_url":"https://api.github.com/users/hgupta9/events{/privacy}","received_events_url":"https://api.github.com/users/hgupta9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T16:26:55Z","updated_at":"2016-01-21T08:37:51Z","closed_at":null,"body":"Where do I add additional aliases for common units? Currently the following do not work:\r\n\r\n- for hour : h, hr, hrs\r\n- for minute : m, min, mins\r\n- for second : s, sec, secs\r\n\r\nAs I understand the current ALIASES list only allows one alias per unit type, and its already used up for plural functionality. If it supported an array of aliases I could just add it in. Also, `m` is currently used for 'meter' so it will conflict, therefore, it may only be possible to add 'min' and 'mins' for minutes.\r\n\r\nThe docs say 'min' is used for `liquid volume/minim`, but I would rather rewire it for `minute`. Many of these changes I could make in a fork but currently this is impossible as the ALIASES list does not take an array.\r\n"},"comment":{"url":"https://api.github.com/repos/josdejong/mathjs/issues/comments/173497505","html_url":"https://github.com/josdejong/mathjs/issues/551#issuecomment-173497505","issue_url":"https://api.github.com/repos/josdejong/mathjs/issues/551","id":173497505,"user":{"login":"hgupta9","id":6797866,"avatar_url":"https://avatars.githubusercontent.com/u/6797866?v=3","gravatar_id":"","url":"https://api.github.com/users/hgupta9","html_url":"https://github.com/hgupta9","followers_url":"https://api.github.com/users/hgupta9/followers","following_url":"https://api.github.com/users/hgupta9/following{/other_user}","gists_url":"https://api.github.com/users/hgupta9/gists{/gist_id}","starred_url":"https://api.github.com/users/hgupta9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgupta9/subscriptions","organizations_url":"https://api.github.com/users/hgupta9/orgs","repos_url":"https://api.github.com/users/hgupta9/repos","events_url":"https://api.github.com/users/hgupta9/events{/privacy}","received_events_url":"https://api.github.com/users/hgupta9/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T08:37:51Z","updated_at":"2016-01-21T08:37:51Z","body":"Is this correct then? (I leave out `m` which is used for `meter` and `s` which is already assigned to `second`)\r\n\r\n    math.import({h: math.unit('hour')});\r\n    math.import({hr: math.unit('hour')});\r\n    math.import({hrs: math.unit('hour')});\r\n    math.import({mins: math.unit('minute')});\r\n    math.import({sec: math.unit('second')});\r\n    math.import({secs: math.unit('second')});"}}