BirdNET-stream/daemon/weekof.sh

10 lines
163 B
Bash
Raw Permalink Normal View History

2022-08-12 18:01:01 +02:00
#! /usr/bin/env bash
2022-08-13 07:48:06 +02:00
# Take a week with format "YYYY-MM-DD" and return the week number.
2022-08-12 18:01:01 +02:00
function weekof()
{
local date=$1
date -d "$date" +%W
}
weekof $1