Skip to main content

Calculate when you can finish your 8-hour workday

Project description

HMT - How Much Time

A simple CLI tool to calculate when you can finish your 8-hour workday.

Installation

pip install hmt

Usage

hmt 8:00 12:00 14:00

This calculates when you can finish work after:

  • Working from 8:00 to 12:00 (4 hours)
  • Resuming at 14:00 (after lunch break)
  • Output: 18:00 (4 more hours needed)

How it works

  • Takes time entries as arguments in HH:MM format
  • Pairs consecutive times as work intervals (start-end, start-end, etc.)
  • Calculates total worked hours
  • Uses the last time as your resume time
  • Calculates when you'll complete 8 hours total

Examples

# Morning work + lunch break
hmt 8:00 12:00 14:00
# Output: 18:00

# Different schedule
hmt 9:00 12:30 13:30
# Output: 18:00

# Multiple breaks
hmt 8:00 10:00 11:00 12:00 13:00
# Output: 18:00

License

MIT

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

hmt-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hmt-0.1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file hmt-0.1.1.tar.gz.

File metadata

  • Download URL: hmt-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.22

File hashes

Hashes for hmt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2e06aab79bb27fb46d7e1d70723ed0792d57406d34f02e16e9d466be4e223b3f
MD5 6c504ea74e8ba2bf6d5f0be01b6a1116
BLAKE2b-256 848dd4d65302ed217e9e443977b4c9e7a02d7926871be3d2690b99c6a42e717a

See more details on using hashes here.

File details

Details for the file hmt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hmt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.22

File hashes

Hashes for hmt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 567ac894057a6fe6d47754aace6fff5e173b97d5b6e40bb48a163bb851f9aa79
MD5 61fb86c50568dd3bbfcc9e8d31efefad
BLAKE2b-256 4c34929454847209e20e8f0550121da155a53ed4431104cb6ec8240ed0e1fd3e

See more details on using hashes here.

Supported by

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