Erotemic / ubelt

A Python utility library with a stdlib like feel and extra batteries. Paths, Progress, Dicts, Downloads, Caching, Hashing: ubelt makes it easy!
Apache License 2.0
719 stars 43 forks source link

Add ub.timeparse #109

Closed Erotemic closed 2 years ago

Erotemic commented 2 years ago

Adds ub.timeparse method to convert timestamps to datetime objects.

Adds the size, mtime, and expires checks to ub.CacheStamp.expired

codecov[bot] commented 2 years ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (7d53c0d) to head (bf4614e). Report is 395 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #109 +/- ## ========================================== Coverage 100.00% 100.00% ========================================== Files 28 28 Lines 3037 3139 +102 Branches 610 634 +24 ========================================== + Hits 3037 3139 +102 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.