mirror of
https://github.com/rwxrob/dot
synced 2024-11-18 15:25:52 +00:00
15 lines
334 B
Bash
Executable File
15 lines
334 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
year="$1"
|
|
|
|
firstday=$(date "+%A, %B %e, %Y" -d "May 4 $year")
|
|
firstweekday=$(date "+%u" -d "May 4 $year")
|
|
daystilsat=$((6-firstweekday))
|
|
sat=$(date "+%A, %B %e, %Y" -d "May 4 $year + $daystilsat days")
|
|
|
|
echo "$firstday"
|
|
for i in {0..16}; do
|
|
echo "$sat"
|
|
sat="$(date "+%A, %B %e, %Y" -d "$sat + 7 days")"
|
|
done
|