rwxrob-dot/scripts/vidoffsetsec
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

7 lines
135 B
Bash
Executable File

#!/usr/bin/env bash
vids="$HOME/Videos/Recordings"
offset=$(( $(date +%s) - $(stat --printf '%W' $(newest "${vids}"))))
echo $offset