Skip to main content

Variable time formats in one package

Project description

timems

Use this package to easily convert various time formats to seconds.

What is it?

from timems import ms

ms('2w') # 1209600
ms('1m') # 60

How to use?

from timems import ms
import asyncio

asyncio.sleep(ms('1h')) # sleeping 3600 sec. / 1h

Formats

m, min, minute, h, ho, hour, d, day, w, week, y, year, mon, month, y, year

Find a Bug?

Report it here

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

timems-1.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

timems-1.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file timems-1.0.1.tar.gz.

File metadata

  • Download URL: timems-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for timems-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1908da52871e6b77c55a134f4080c6a5ed9b994e9ba676055f37b313db94bcdf
MD5 5238dd95c8049b0396d6ac7a72f10c0e
BLAKE2b-256 0031406a7465a042c121b2c18d912c14daf11048124a72e89326a2b9b703b4a1

See more details on using hashes here.

File details

Details for the file timems-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: timems-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for timems-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc0122c24cb9823706fbfc7e5257cae98d58936528abd160feb3e22823c7d75c
MD5 e15abbbbdaecad65388804669ce5fb49
BLAKE2b-256 01bc95fc22b6dd1b191744f6c0a73a9c6d1fb2e89b78b38ec3580df4d5390a61

See more details on using hashes here.

Supported by

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