Expiration#
Utility functions for parsing and converting expiration values
- requests_cache.policy.expiration.get_expiration_datetime(expire_after, start_time=None, negative_delta=False, ignore_invalid_httpdate=False)[source]#
Convert an expiration value in any supported format to an absolute datetime
- requests_cache.policy.expiration.get_expiration_seconds(expire_after)[source]#
Convert an expiration value in any supported format to an expiration time in seconds