• sacha released this 2023-12-14 22:24:07 +01:00 | 0 commits to trunk since this release

    Almost 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
  • Minor changes Stable

    sacha released this 2023-02-27 22:26:51 +01:00 | 3 commits to trunk since this release

    • Added tests of the two functions that do not have any (time-based) dynamic returns
    • Added error checking there when able
    • Added build-script to create release binaries

    It is a very small update

    Downloads
  • No more +100% Stable

    sacha released this 2022-12-27 00:48:33 +01:00 | 8 commits to trunk since this release

    Thanks to timezones it could happen that that the percentage of the year or the day went beyond the 100%. This shouldn't happen and I fixed this.

    Downloads
  • sacha released this 2022-12-15 20:33:23 +01:00 | 9 commits to trunk since this release

    Initial release.

    For now arch AMD64 for Linux and Windows binaries only.

    Downloads