https://github.com/mnvx/time-to-time
Date-time to UNIX timestamp converter according to timezone
https://github.com/mnvx/time-to-time
Last synced: 10 months ago
JSON representation
Date-time to UNIX timestamp converter according to timezone
- Host: GitHub
- URL: https://github.com/mnvx/time-to-time
- Owner: mnvx
- Created: 2025-03-17T21:57:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-17T23:07:29.000Z (over 1 year ago)
- Last Synced: 2025-03-17T23:25:50.231Z (over 1 year ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Time to Time Converter
**Deprecated!!! Please follow the actual version: https://github.com/isitup/time-to-time**
A simple web application for converting between Unix timestamps and human-readable date-time formats.

## About
This project created using [claude](https://www.anthropic.com/) and a little bit modified after.
The initial prompt:
> Create a new app for converting timestamps to date-time and date-time to timestamps. App must contain only html page with all logic based on js. The page must
> have 2 fields: integer field with timestamp (UTC) and string field with date-time. Date-time must be in browser's timezone by defaults if not specified others.
> Near date-time field must be a separate field with select for choosing a timezone of date-time field. When user enter timestamp, then field date-time must be
> calculated. When user enter date-time (and maybe timezone), then field timestamp must be calculated. Date-time field must be by default in ISO format 2026-12-30
> 12:30:25, but user can copy-paste value into this field in another format, therefore we must automatically detect used format and convert it into ISO. Page must
> looks good, use some modern css library for this. Also use some package for converting date and time.
## Features
- Convert Unix timestamps (in seconds) to date-time format
- Convert date-time format to Unix timestamps
- Automatic detection of various date-time formats
- Timezone selection
- Responsive design
- "Use Current Time" button for quick testing
## Technologies Used
- HTML5, CSS3, JavaScript
- [Bootstrap 5](https://getbootstrap.com/) for styling
- [Day.js](https://day.js.org/) for date manipulation
## Usage
Simply open `index.html` in any modern web browser. No server or installation required.
### Converting Timestamp to Date-Time
1. Enter a Unix timestamp in seconds in the "Unix Timestamp" field
2. The corresponding date and time will appear in the Date-Time field
3. Optionally change the timezone to see the date-time in different timezones
### Converting Date-Time to Timestamp
1. Enter a date and time in the "Date and Time" field
2. The app supports various formats and will auto-detect most common ones
3. Select the appropriate timezone for your input
4. The corresponding Unix timestamp will appear in the Timestamp field
## License
MIT