Joined December 2012
·

Alexander Loschilov

Nizhny Novgorod
·
·
·

I believe that you are wrong and there is a simpler way to implement human friendly formats. You need to insert hyphen within value placeholder:

>>> dt_object.strftime("%H:%M")
'01:05'
>>> dt_object.strftime("%-H:%M")
'1:05'
Achievements
94 Karma
2,015 Total ProTip Views