awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 769 forks source link

[Feature Request] improved timestamp shortcuts #258

Open rfagen opened 3 years ago

rfagen commented 3 years ago

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 commented 3 years ago

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

rfagen commented 3 years ago

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!