blob: 49af61f45faf340d1de5d654d156e1b029b55f84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env zsh
set -eu
export TZ=UTC
year=$(date +'%Y')
while [[ $((($(date -d "${year}0101" +'%s') - $(date +'%s')) / 86400)) -lt 150 ]]; do
year=$((year + 1))
done
echo "${year}0101" > $1
gup --always
gup --contents $1
|