@lazymac/timezone-api
v1.0.0
Published
Timezone conversion API — current time, convert between zones, meeting planner, world clock.
Downloads
52
Readme
timezone-api
Timezone conversion API — current time in any zone, convert between timezones, world clock, meeting planner. Supports IANA names + common abbreviations (EST, KST, JST, etc).
Quick Start
npm install && npm start # http://localhost:4800Endpoints
# Current time in Seoul
curl http://localhost:4800/api/v1/now/KST
# Convert time between zones
curl "http://localhost:4800/api/v1/convert?datetime=2026-03-21T09:00&from=KST&to=EST"
# World clock
curl -X POST http://localhost:4800/api/v1/world-clock \
-H "Content-Type: application/json" \
-d '{"zones":["KST","EST","PST","CET","JST"]}'
# Meeting planner — find overlapping work hours
curl -X POST http://localhost:4800/api/v1/meeting-planner \
-H "Content-Type: application/json" \
-d '{"zones":["KST","EST","CET"],"workHours":[9,18]}'
# List all supported zones
curl http://localhost:4800/api/v1/zonesLicense
MIT
