Skip to main content

A time calculator

Project description

Timecalculator is a my first library, so do not await to much.
It is used to calculate with time.

sys_time()

This function returns the system time.
An example output would be:
Wed, 14 Oct 2020 17:01:06

mintosec(minutes)

This function returns the the minutes * 60, because 1 * 60 are 60 seconds.

htosec(hours)

This function works just like the last, but hours * 60 * 60

daytosec(days)

This function is the same again, just days * 24 * 60 * 60

work_week()

This function is something else, it always returns 432.000
because it isn´t like one day - one day - one day, it´s work week - weekend - work week

weekend()

same problem, but this time returns 172.800

weektosec(weeks)

This time the old one again, 7 * 24 * 60 * 60

monthtosec(months)

30 * 7 * 24 * 60 * 60

yeartosek(years)

365 * 7 * 24 * 60 * 60

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

timecalculator-1.1.9.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file timecalculator-1.1.9.tar.gz.

File metadata

  • Download URL: timecalculator-1.1.9.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for timecalculator-1.1.9.tar.gz
Algorithm Hash digest
SHA256 c4cb773c8f51c6d603f7130566bc6d45da6d4d5f317447dd8700234cb7534591
MD5 d33314f40e0eba37345f5123d241aced
BLAKE2b-256 701995e7b3bdbc2aa0e6773cd132413f466cd694a88d65af55ece195d5f3804a

See more details on using hashes here.

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