Need documentation/example to make jmespath query on datetime object.
See original GitHub issueCurrently all the boto3 documentation show date element as datetime() object.e.g.
{
'Contents': [
{
'Key': 'string',
'LastModified': datetime(2015, 1, 1),
'ETag': 'string',
.....
}
There is little documentation mentioned how to deal with the datetime object when using jmespath query.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
JMESPath Tutorial
JMESPath Tutorial¶. This is a tutorial of the JMESPath language. JMESPath is a query language for JSON. You can extract and transform elements...
Read more >python - JMESPath date filtering - Stack Overflow
You can't just put a str(compareTime) expression in as string literal and have Python understand that that's what you wanted to replace.
Read more >Why do I only have to escape the last backslash in a string ...
I have the following Python code: localExtractpath = "D:\Python\From 0 to 1\Excel\" if os.path.exists(localZipPath): print("Cool!
Read more >openshift-ansible-3.10.38-1.git.0.8cfad6d.el7 | Build Info
Create v3.10 imagestreams, quickstart, and db-templates that support ppc64le ... Note about jmespath requirement for control node (#599) ...
Read more >openshift-ansible.spec · master · oit-ssi-systems ... - Duke Gitlab
RPM doesn't handle this so we have to do some pre-transaction magic. ... openshift-aws: updating the subnet querying (mwoodson@redhat.com).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I contacted AWS support about this and after some wrong starts they gave me this which works:
However because you’re providing a string you have to be careful with the format. I haven’t tested this exhaustively so there may be combinations that don’t work.
A clean version where you can have the filter date to be dynamic: