Support parsing human-friendly deltas? #305
Replies: 4 comments
|
Hi, thanks for posting. I'm definitely considering this. My only concern at the moment is that this complicates the |
|
I personally would prefer a seperate method, say |
|
The |
|
I think this would be good but as I write it I think maybe the main "problem" would be localization. We actually used So we eventually rolled our own regex based parser with some extra behaviour such as treating pure numbers as days: Some extra sauce for Pydantic (as we currently use it) |
Uh oh!
There was an error while loading. Please reload this page.
I have a couple places where I need to parse durations like
2h30m,7d,2h 30min, etc.For some prior art,
jiffsupports this for itsSpanandSignedDurationtypes:All reactions