Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def seconds_to_datetime_str(seconds: str, format: str = '%Y-%m-%d'):
  2. return time.strftime(format, time.gmtime(seconds))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement