Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def _format_time(t):
- def _beautify(inp):
- return "0" + str(inp) if inp < 10 else str(inp)
- return "%s.%s.%s - %s:%s:%s" \
- % (_beautify(t.day), _beautify(t.month), t.year, _beautify(t.hour), _beautify(t.minute), _beautify(t.second))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement