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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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