Skip to main content

Converts e.g. 24h to 86400

Project description

Installing

Should work on any version, Python 2.7+ is recommended

# Linux/macOS
pip3 install -U time_converters

# Windows
pip install -U time_converters

Code Example

from time_converters import time_to_sec

time = '24h'

print(time_to_sec(time))
//results: 86400 (int)

Convert proof:

https://cdn.discordapp.com/attachments/925827864950108180/929453894470361188/unknown.png

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

time_converters-1.6.9.tar.gz (10.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page