Created
May 18, 2018 14:06
-
-
Save sergiolucero/2f1ca7a96154d538f244085cd46d7bbc to your computer and use it in GitHub Desktop.
time in Chile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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