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 details)

Uploaded Source

File details

Details for the file time_converters-1.6.9.tar.gz.

File metadata

  • Download URL: time_converters-1.6.9.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for time_converters-1.6.9.tar.gz
Algorithm Hash digest
SHA256 8b9dabc237f488ee343517aff97695d5a5eadb471c7e004d0755ab25aea52de3
MD5 bde51ce7fa79530570d72d894cf8abf2
BLAKE2b-256 c168b49e0d5bf7c5556d430335c1377acd798d71d1579ec7d39924facb142632

See more details on using hashes here.

Supported by

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