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.0.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.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hmt-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 524dd27b80bd6d8fa041bb68003bc9d1cb22a77ce0e1b6a5546d6b0403144091
MD5 4c99cd73ca313ca1e3a182234f5ff7d9
BLAKE2b-256 2cd6f7ebba3a855fd3e741c0f07a92c5de73d2689f02d66bff05525174f47735

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hmt-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 550af87401fbe96f6162e950198670915f9e0cd6b60e3f573c0e155842459367
MD5 0cdfbb9e6526d3470701ad1ffc1f69bc
BLAKE2b-256 463be7ac71ad8b51b28c4bf6d33081a7e8c5fbc6b0f9662be811a4a20cdbcc35

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