aws-shell icon indicating copy to clipboard operation
aws-shell copied to clipboard

[Feature Request] improved timestamp shortcuts

Open rfagen opened this issue 4 years ago • 2 comments

Currently (just upgraded to 0.2.2) time parameters can only be set as epoch-time-milliseconds. The AWS cli supports ISO 8601 timestamps, as well as epoch time.

Could using "2021-03-11T19:00:00Z" be added?

Also, it would be really clever if there was also a shortcut following the pattern of "now()" or "now(-1d)" or "now(-1h)" when specifying times for fetching logs and such.

rfagen avatar Mar 12 '21 17:03 rfagen

Oh. I'm on aws-cli/1.16.51 -- maybe that's a CLI v2 feature?

rfagen avatar Mar 12 '21 18:03 rfagen

Oops! RTFM: Available in the AWS CLI version 2 only

But maybe the notion of translating "now()" is still a valid feature request? Otherwise, feel free to close.

Thanks!

rfagen avatar Mar 12 '21 18:03 rfagen