Welcome to modsiw's Unix Time Converter! This web application allows you to convert a date and time to a Unix timestamp. It's optimized for <t:unixtimecode>
for Discord usage.
- Features
- Installation and Usage
- How to Use
- Accessing the Application
- Deploying to Heroku
- Contributing
- License
- Convert a date and time to a Unix timestamp.
- Copy the converted timestamp to the clipboard.
- Optimized for
<t:unixtimecode>
for Discord usage. - Follow modsiw on Twitter.
To use modsiw's Unix Time Converter, follow the steps below:
# Navigate to the project directory
cd your-repo
# Create and activate a virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate
# Install the required dependencies
pip install -r requirements.txt
# Start the Flask development server
flask run
Follow these steps to convert a date and time to a Unix timestamp using modsiw's Unix Time Converter:
Enter a date and time in the provided input fields.
Click the "Convert" button to convert the date and time to a Unix timestamp.
The converted Unix timestamp will be displayed below. Click the "Copy to Clipboard" button to copy the timestamp.
To access the application:
Open your web browser and navigate to http://localhost:5000.
The Unix Time Converter interface will be displayed.
To deploy the Unix Time Converter application to Heroku, follow these steps:
Create a new Heroku app.
# Set the necessary environment variables or config vars in Heroku:
FLASK_APP=app.py
FLASK_ENV=production
# Deploy the application to Heroku using your preferred method (e.g., Heroku CLI, Git-based deployment).
Once deployed, access the application using the provided Heroku app URL.
Contributions are welcome!
# This project is licensed under the MIT License.