Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Created May 18, 2018 14:06
Show Gist options
  • Save sergiolucero/2f1ca7a96154d538f244085cd46d7bbc to your computer and use it in GitHub Desktop.
Save sergiolucero/2f1ca7a96154d538f244085cd46d7bbc to your computer and use it in GitHub Desktop.
time in Chile
from datetime import datetime
from pytz import timezone
def chile_time():
scl = timezone('America/Santiago')
scl_time = datetime.now(scl)
return scl_time.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