Skip to main content

Make machine more friendly to you! Convert seconds to a human string and back!

Project description

License: MIT

machine2human

from m2h import Hum2Sec, Sec2Hum

>> print(Sec2Hum(80000).string)
'22 часа 13 минут 20 секунд'


>> print(Hum2Sec("22 часа 13 минут 20 секунд").seconds)
80000

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

machine2human-0.0.4.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

machine2human-0.0.4-py3-none-any.whl (3.9 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