Skip to main content

Variable time formats in one package

Project description


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


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 py3

Supported by

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