Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgebucaran/humantime.fish
Turn milliseconds into a human-readable string in Fish
https://github.com/jorgebucaran/humantime.fish
duration fish fish-plugin time
Last synced: 4 months ago
JSON representation
Turn milliseconds into a human-readable string in Fish
- Host: GitHub
- URL: https://github.com/jorgebucaran/humantime.fish
- Owner: jorgebucaran
- License: mit
- Created: 2019-01-12T02:15:24.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T07:59:59.000Z (about 4 years ago)
- Last Synced: 2024-05-02T05:31:13.880Z (9 months ago)
- Topics: duration, fish, fish-plugin, time
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 21
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# humantime.fish
> Turn milliseconds into a human-readable string in [Fish](https://fishshell.com).
You have the time in milliseconds and want to turn it into a human-readable string like "3h 14m 15s".
```fish
$ sleep 1
$ humantime $CMD_DURATION
1s 5ms
```> **Tip**: `$CMD_DURATION` is set by Fish to the running time of the last command in milliseconds.
## Installation
Install with [Fisher](https://github.com/jorgebucaran/fisher):
```console
fisher install jorgebucaran/humantime.fish
```## License
[MIT](LICENSE.md)