pytimeparse icon indicating copy to clipboard operation
pytimeparse copied to clipboard

A small Python module to parse various kinds of time expressions.

Results 15 pytimeparse issues
Sort by recently updated
recently updated
newest added

Thank you for this, for the past year I have used this in all projects needing it, on a daily basis. Is there any way I can donate?

Dear Will, first things first: Thanks a stack for conceiving this excellent package. Attaching to #7 and #13, while recognizing your arguments, I still believe it would be reasonable to...

Hi there It would be nice to add milliseconds support to this tool I was able to do that at runtime by overriding some internal values with the following code...

Hi! Thank you for your library, I just wanna know is it likely that you will add support for negative deltas? For example `timeparse('-1 days -00:00:14.513431')` gives None, why it...

I see that its commented in the code, any reason for that?

I'm currently working on some metric work coming out of the job scheduler 'slurm', it records elapsed time as: ``` 1-04:18:35 ## multi day elapsed time 12:25:02 ## single day...

`"5:1"` returns None whereas `"5:01"` returns 301.

If we do `parse("10")`, it returns `None`. Maybe the module should define (or have a setting) for a default time unit. That way we get a predictable output.

Cool project. I would have found it a good fit for my work but I also needed sub-second precision. ```python >>> import pytimeparse >>> pytimeparse.parse('1ms') >>> ``` I thought I'd...