generated from nathanwoodburn/python-webserver-template
Timezone converter to help organise events
.gitea/workflows | ||
templates | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
main.py | ||
README.md | ||
requirements.txt | ||
server.py |
python-webserver-template
Python3 website template including git actions
Example curl
Commands
Convert Specific Time Between Two Timezones
curl -X POST http://localhost:5000/api/v1/convert -H "Content-Type: application/json" -d '{
"from_tz": "Australia/Sydney",
"to_tz": "UTC",
"time": "2023-10-10T15:00:00"
}'
Convert Specific Time Between Multiple Timezones
curl -X POST http://localhost:5000/api/v1/convert_multiple -H "Content-Type: application/json" -d '{
"from_tz": "Australia/Sydney",
"time": "2023-10-10T15:00:00",
"to_tzs": ["UTC", "America/New_York", "Europe/London"]
}'