tz-converter/README.md

633 B

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"]
}'