Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vjfjnu$2ues6$4@dont-email.me>
Deutsch   English   Français   Italiano  
<vjfjnu$2ues6$4@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: AI Written Bash Script
Date: Thu, 12 Dec 2024 21:14:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vjfjnu$2ues6$4@dont-email.me>
References: <vjelp3$24q57$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 12 Dec 2024 22:14:38 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f089114b1739cee2d645e6e434e62749";
	logging-data="3095430"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+Uy8yjybDwTfPWPnlJHRA4"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:1chQ/Q70tixlzlSnPKDTG4tF4V8=
Bytes: 1336

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))