mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 14:28:40 +02:00
Use proper value of cos(6 degrees) for dusk/dawn
This commit is contained in:
@@ -1991,9 +1991,9 @@ static int FSun(int rise, func_info *info)
|
||||
double cosz = -0.014543897; /* for sunrise and sunset */
|
||||
int r;
|
||||
|
||||
/* Civil twilight: 6 degrees */
|
||||
/* Civil twilight: cos(6 degrees) */
|
||||
if (rise == 2 || rise == 3) {
|
||||
cosz = -0.1047197551;
|
||||
cosz = -0.104528463268;
|
||||
}
|
||||
if (Nargs >= 1) {
|
||||
if (!HASDATE(ARG(0))) return E_BAD_TYPE;
|
||||
|
||||
Reference in New Issue
Block a user