Skip to content

Instantly share code, notes, and snippets.

@yatakeke
Last active December 4, 2019 01:00
Show Gist options
  • Save yatakeke/6e6a7727e679772d7c6fa8cee929fe8c to your computer and use it in GitHub Desktop.
Save yatakeke/6e6a7727e679772d7c6fa8cee929fe8c to your computer and use it in GitHub Desktop.
from datetime import datetime as dt
def get_timestamp():
dt_obj = dt.now()
return dt_obj.strftime("%Y/%m/%d, %H:%M:%S")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment