Created
June 5, 2020 06:02
-
-
Save dixneuf19/ad6d5908aa4b3d4b376b9116195c1156 to your computer and use it in GitHub Desktop.
time as SAAS with python
This file contains 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
# src/main.py | |
import requests | |
def main(): | |
r = requests.get("http://worldtimeapi.org/api/timezone/Europe/Paris") | |
datetime = r.json()["datetime"] | |
print(datetime) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment