Skip to content

Instantly share code, notes, and snippets.

@strophy
Forked from moocowmoo/dash_budget_payout_dates.sh
Last active September 5, 2022 15:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save strophy/9eb743f7bc717c17a2e776e461f24c49 to your computer and use it in GitHub Desktop.
Save strophy/9eb743f7bc717c17a2e776e461f24c49 to your computer and use it in GitHub Desktop.
estimate future dash budget payout dates
#!/bin/bash
D0=$(TZ=UTC date --date="$(date --date="2015-12-07T08:27:12+0000")");
for block in `seq 398784 16616 $((382168 + (16616*48)))`;
do DD=$(TZ=UTC date --date="$(date --date="$D0") +727 hours +5 minutes +2 seconds");
D0=$DD;
echo "$block - $DD";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment