RosettaCodeData/Task/Long-year/UNIX-Shell/long-year-2.sh

4 lines
65 B
Bash

long_year() {
expr $(date -d "$1-12-28" +%V) = 53 >/dev/null
}