Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/al-ce/timediff-calculator
Calculate the differences between times in a 24hr period and their total with Vim-ish bindings.
https://github.com/al-ce/timediff-calculator
Last synced: 2 days ago
JSON representation
Calculate the differences between times in a 24hr period and their total with Vim-ish bindings.
- Host: GitHub
- URL: https://github.com/al-ce/timediff-calculator
- Owner: al-ce
- License: gpl-2.0
- Created: 2024-10-24T03:04:34.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T21:46:16.000Z (about 2 months ago)
- Last Synced: 2024-12-24T00:56:04.157Z (3 days ago)
- Language: HTML
- Size: 1.41 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Time Diff Calculator
Web app to calculate the differences of times within a 24hr time period. The subtotals are summed at the bottom row of the table.
Useable with [github.io html preview](https://htmlpreview.github.io/?https://github.com/al-ce/timediff-calculator/blob/main/singlepage.html)
## Usage
New rows are created automatically as needed, or they can be created manually.
Pressing `Y` copies the table in a TSV format to the system clipboard. Here is the output of the above screenshot:
```tsv
08:45 13:45 5
08:45 15:15 6
19:41 01:12 5.52
09:00 09:00 016.52
```## Single page version
A single page version is available for convenient offline use.
The combination process is automated using the `combiner` binary included in the repository. The source code is in [combiner.go](combiner.go). The combiner program assumes the presence of an `./index.html`, `./script.js`, and `./style.css`, and writes the combined content to `./singlepage.html`.