Subj : Re: AI Written Bash Script To : Lawrence D'Oliveiro From : DrStevenStrange Date : Fri Dec 13 2024 06:57:08 Lawrence D'Oliveiro wrote: > On Thu, 12 Dec 2024 12:43:14 +0000, DrStevenStrange wrote: > >> ... how can I amend the script so it starts 30 minutes BEFORE sunrise >> and stops 30 Minutes after? >> ... >> SUNRISE_EPOCH=$(date -d "$SUNRISE" +%s) >> SUNSET_EPOCH=$(date -d "$SUNSET" +%s) > > How about > > SUNRISE_EPOCH=$(($(date -d "$SUNRISE" +%s) - 1800)) > SUNSET_EPOCH=$(($(date -d "$SUNSET" +%s) + 1800)) > Many thanks --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .