Skip to content

itsmodsiw/tcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modsiw's Unix Time Converter

Python Flask pytz

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.

Table of Contents

Features

  • 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.

Installation and Usage

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

How to Use

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.

Accessing the Application

To access the application:

Open your web browser and navigate to http://localhost:5000.

The Unix Time Converter interface will be displayed.

Deploying to Heroku

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.

Contributing

Contributions are welcome! 

License


# This project is licensed under the MIT License.

GitHub Repo License Python Flask Heroku HTML CSS JavaScript Pytz Discord Twitter