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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hmt-0.1.0-py3-none-any.whl
(2.6 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
524dd27b80bd6d8fa041bb68003bc9d1cb22a77ce0e1b6a5546d6b0403144091
|
|
| MD5 |
4c99cd73ca313ca1e3a182234f5ff7d9
|
|
| BLAKE2b-256 |
2cd6f7ebba3a855fd3e741c0f07a92c5de73d2689f02d66bff05525174f47735
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
550af87401fbe96f6162e950198670915f9e0cd6b60e3f573c0e155842459367
|
|
| MD5 |
0cdfbb9e6526d3470701ad1ffc1f69bc
|
|
| BLAKE2b-256 |
463be7ac71ad8b51b28c4bf6d33081a7e8c5fbc6b0f9662be811a4a20cdbcc35
|