Preparing for system design interviews?  Try bugzed.com →

Time Expression Parser

JSON →
library 1.7.1 ·python
verified Jun 28, 2026

pytimeparse2 is a small Python library for parsing various human-readable time expressions (e.g., '2h32m', '1.5 days', '5hr 34mins 56secs') into a total number of seconds or `datetime.timedelta` objects. It is a fork of the original `pytimeparse` project, aiming for optimized functionality and stable support. The current version is 1.7.1, and releases are made on an as-needed basis for bug fixes and feature enhancements.

total hits 14
actors 5 distinct systems
last hit 5d ago AhrefsBot
GPTBot
4
Script
1
ByteDance
1
Search engines
1
Humans
3

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France