{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2117","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2117/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2117/comments","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2117/events","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2117","id":107278605,"number":2117,"title":"ARM: `azure usage list` date formats for parameters not documented","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-18T21:06:22Z","updated_at":"2015-09-22T20:22:41Z","closed_at":null,"body":"```\r\n➜  ~  azure usage list --help\r\nhelp:    List the usage aggregates for a provided time range\r\nhelp:\r\nhelp:    Usage: usage list [options] [reportedStartTime] [reportedEndTime]\r\nhelp:\r\nhelp:    Options:\r\nhelp:      -h, --help                               output usage information\r\nhelp:      -v, --verbose                            use verbose output\r\nhelp:      -vv                                      more verbose with debug output\r\nhelp:      --json                                   use json output\r\nhelp:      --reportedStartTime <reportedStartTime>  The start of the time range to retrieve data for.\r\nhelp:      --reportedEndTime <reportedEndTime>      The end of the time range to retrieve data for.\r\nhelp:      --granularity <daily/hourly>             Value is either daily (default) or hourly to tell the API how to return the results grouped by day or hour.\r\nhelp:      --showDetails <bool>                     When set to true (default), the aggregates are broken down into the instance metadata which is more granular.\r\nhelp:      --continuationToken <url>                Retrieved from previous calls, this is the bookmark used for progress when the responses are paged.\r\nhelp:      --subscription <subscription>            the subscription identifier\r\nhelp:\r\nhelp:    Current Mode: arm (Azure Resource Management)\r\n```\r\n\r\nright now I have no clue what `reportedStartTime` and `reportedEndTime` should look like. As a Linux person, I'll go with Unix epoch:\r\n\r\n```\r\n$ azure usage list --reportedStartTime 0 --reportedEndTime 1442610271\r\ninfo:    Executing command usage list\r\n+ Listing usage aggregates\r\nerror:   reportedEndTime is not a valid date\r\ninfo:    Error information has been recorded to /Users/alp/.azure/azure.err\r\nerror:   usage list command failed\r\n```\r\n\r\nWell that didn't work... So the time format is not valid. What's the correct one? We have a ton of these formats... Please document this.\n<!---@tfsbridge:{\"tfsId\":4690031}-->"},"comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments/142407838","html_url":"https://github.com/Azure/azure-xplat-cli/issues/2117#issuecomment-142407838","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2117","id":142407838,"user":{"login":"Matt-Westphal","id":12738087,"avatar_url":"https://avatars.githubusercontent.com/u/12738087?v=3","gravatar_id":"","url":"https://api.github.com/users/Matt-Westphal","html_url":"https://github.com/Matt-Westphal","followers_url":"https://api.github.com/users/Matt-Westphal/followers","following_url":"https://api.github.com/users/Matt-Westphal/following{/other_user}","gists_url":"https://api.github.com/users/Matt-Westphal/gists{/gist_id}","starred_url":"https://api.github.com/users/Matt-Westphal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matt-Westphal/subscriptions","organizations_url":"https://api.github.com/users/Matt-Westphal/orgs","repos_url":"https://api.github.com/users/Matt-Westphal/repos","events_url":"https://api.github.com/users/Matt-Westphal/events{/privacy}","received_events_url":"https://api.github.com/users/Matt-Westphal/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T20:22:41Z","updated_at":"2015-09-22T20:22:41Z","body":"The start and end time should be in the format mm/dd/yyyy.  I'll update the help to show the expected format "}}