A web application for visualizing and comparing time across multiple time zones using interactive analog clocks. Features intuitive visual representation of daytime/nighttime, dark mode support, and flexible configuration options.
This project was generated with assistance from Claude, an AI assistant by Anthropic.
- Compare 2-3 different time zones simultaneously (one source and up to two target zones)
- Visual analog clock display with day/night indication
- Automatic time zone conversion
- Default settings: Tokyo (source), New York (first target)
- Current time automatically set as default
- Dark mode support with persistent preference
- Responsive design for all screen sizes
- Toast notifications for operation feedback
- Error handling with user-friendly messages
- Form validation with immediate feedback
- URL sharing with timezone configurations
- Copy image to clipboard functionality
- Fallback to SVG download for unsupported browsers
- OGP (Open Graph Protocol) integration
- ISO 8601 format support (YYYY-MM-DDThh:mm)
- Timezone-aware time conversion
- Input validation with helpful feedback
- Supports various input formats with automatic parsing
- Pure HTML5/CSS3/JavaScript
- Luxon.js for timezone calculations
- Custom SVG generation for clock visualization
- Modern CSS features (Custom Properties, Grid, Flexbox)
- AWS S3 for static file hosting
- AWS CloudFront for content delivery
- AWS CloudFormation for infrastructure as code
timezone-clocks
├── LICENSE
├── README.md
├── cloudformation/
│ └── template.yaml # AWS CloudFormation template
├── scripts/
│ ├── cleanup.sh # Resource cleanup script
│ └── deploy.sh # Deployment script
└── src/
├── assets/
│ └── favicon.ico
├── css/
│ └── styles.css # Main stylesheet
├── js/
│ ├── app.js # Main application logic
│ ├── clock-utils.js # Clock visualization utilities
│ └── timezones.js # Timezone management
└── index.html # Main HTML file
- AWS CLI installed and configured
- Basic understanding of web development
- Modern web browser
- Text editor of your choice
- Make scripts executable:
chmod +x scripts/deploy.sh scripts/cleanup.sh- Deploy to AWS:
./scripts/deploy.sh timezone-clocks- Cleanup AWS resources:
./scripts/cleanup.sh timezone-clocksThe application accepts the following URL parameters:
time: ISO 8601 formatted time (e.g., "2024-02-20T14:30")sourceTz: Source timezone (e.g., "Asia/Tokyo")targetTz: Comma-separated target timezones (e.g., "America/New_York,Europe/London")
Example URL:
https://[cloudfront-domain]/?time=2025-01-01T09:00&sourceTz=Asia/Tokyo&targetTz=America/New_York
-
Time Selection
- Enter time in ISO format
- Current time is used by default
- Validation ensures correct format
-
Timezone Selection
- Source timezone (required)
- First target timezone (required)
- Second target timezone (optional)
-
Display Options
- Dark/Light mode toggle
- Automatic day/night indication
- Responsive layout
-
Sharing
- Copy URL button
- Copy Image button
- Automatic OGP image generation
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
Copyright © 2025 Akinori Hiratani (godajaiko21)
Released under the MIT License
https://github.com/godajaiko21/timezone-clocks
This project is licensed under the MIT License - see the LICENSE file for details.
- Luxon.js for reliable timezone calculations
- AWS for hosting infrastructure
- Contributors and maintainers
For issues, feature requests, or contributions, please create an issue in the GitHub repository.