Last active
September 11, 2018 01:47
-
-
Save sergiolucero/4f2963ce4f2225930dbbfbc131e9121f to your computer and use it in GitHub Desktop.
localtime
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 pytz import timezone | |
| from datetime import datetime | |
| def localtime(): | |
| santiago = timezone('America/Santiago') | |
| scl_time = datetime.now(santiago) | |
| 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