Python Time Literals

Safe and accurate parsing of time literals (values + units) is both common and crucial requirement. While C++ has a mechanism through STL chrono, such a functionality is absent in python (as per my information). Library: GitHub Gist. What is a time-literal? Just to be clear, time literal here means anything of this form : 5ns, 4min, 15.5ms. It is a numeric value (float) followed by alphabetic constants that indicate special treatment of the alpha-numeric string constant....

<span title='2022-06-28 18:15:16 +0530 +0530'>June 28, 2022</span>&nbsp;ยท&nbsp;4 min&nbsp;ยท&nbsp;806 words&nbsp;ยท&nbsp;Yatharth Bhasin