-
released this
2023-12-14 22:24:07 +01:00 | 0 commits to trunk since this releaseAlmost a year after the initial release I have a new update.
Changes:
- Added startup parameters/flags
- Add a third, optional, and custom render of a custom epoch/time-range
Flags
For starters, this tool now support program flags:
$ ./timepercentage.linux-amd64 --help Usage of ./timepercentage.linux-amd64: -custom Display a custom range -custom-start string Start of the custom range -custom-stop string Start of the custom range -day Display progress of the day. (default true) -year Display progress of this year. (default true)
It will still print the day and year renders if no parameters are given:
$ ./timepercentage.linux-amd64 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░░ 92.6004499% ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░ 95.3221930%
But you can disable these with
--day=false
and--year=false
:./timepercentage.linux-amd64 --day=false --year=false
Custom epoch
With the new parameters available you can specify a custom range to render. This is done by setting:
--custom=true
--custom-start=$RFC3339_DATE
--custom-stop=$RFC3339_DATE
For example:
$ ./timepercentage.linux-amd64 --custom=true --custom-start="1990-01-01T12:00:00+01:00" --custom-stop="2030-01-01T12:00:00+01:00" ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░░ 92.9666377% ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░ 95.3231963% ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░░░░░░ 84.8766005%
The inputs take the following date format:
YYYY-MM-DDTHH:mm:ss+hh:mm
Downloads
- Source Code (ZIP)
- Source Code (TAR.GZ)
-
timepercentage.darwin-arm64
2.1 MiB
-
timepercentage.linux-amd64
2.0 MiB
-
timepercentage.openbsd-amd64
2.1 MiB
-
timepercentage.openbsd-amd64
2.1 MiB
-
timepercentage.windows-amd64.exe
2.2 MiB