chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Allow "a" and "p" for "am" and "pm"

Open thatericsmith opened this issue 4 years ago • 1 comments

I see in the code where it says this situation is perhaps unlikely: https://github.com/wanasit/chrono/blob/master/src/common/parsers/AbstractTimeExpressionParser.ts#L325

Our users, on the other hand, use this shorthand quite frequently. Could this possibly be added using a flag / config option?

Thanks for considering!

thatericsmith avatar Apr 26 '22 17:04 thatericsmith

I'd also like this feature. This is how time tracking interprets time in Quickbooks Self-Employed, and I'm used to it. I'm just exploring using this library, and if anyone could give guidance on how to add a parser or refiner to override this behavior, I'd appreciate that.

zekecato avatar Apr 27 '22 23:04 zekecato