def strf(self, fmt='%H:%M:%S'):
"""
Returns the formatted string of the time
Args:
* fmt (time format): %H=hours, %M=minutes, %S=seconds,
%f=microseconds. Check:
https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior
"""
return self._time.strftime(fmt)
评论列表
文章目录