File: sunmoon.rem

package info (click to toggle)
remind 06.02.03-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 40,888 kB
  • sloc: ansic: 25,719; sh: 6,377; perl: 3,076; lisp: 432; makefile: 263
file content (95 lines) | stat: -rw-r--r-- 2,090 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
set $AddBlankLines 0
SET $Latitude "45.42055556"
SET $Longitude "-75.68944444"
banner %

set d '2011-01-01'
set x adawn(d)
if x < 5:53 || x > 5:57
    REM MSG adawn() is inaccurate! - [x]
endif

set x dawn(d)
if x < 7:06 || x > 7:10
    REM MSG dawn() is inaccurate! - [x]
endif

set x sunrise(d)
if x < 7:40 || x > 7:44
    REM MSG sunrise() is inaccurate! - [x]
endif

set x sunset(d)
if x < 16:28 || x > 16:32
    REM MSG sunset() is inaccurate! - [x]
endif

set x dusk(d)
if x < 17:02 || x > 17:06
    REM MSG dusk() is inaccurate! - [x]
endif

set x adusk(d)
if x < 18:15 || x > 18:19
    REM MSG adusk() is inaccurate! - [x]
endif

set x moonrise(d)
if x < '2011-01-01@5:14' || x > '2011-01-01@5:18'
    REM MSG moonrise() is inaccurate! - [x]
endif

set x moonset(d)
if x < '2011-01-01@13:59' || x > '2011-01-01@14:03'
    REM MSG moonset() is inaccurate! - [x]
endif

set x moonphase(d, 0:00)
if x < 319 || x > 323
    REM MSG moonphase() is inaccurate! - [x]
endif

set x moondatetime(0, d, 0:00)
if x < '2011-01-04@04:02' || x > '2011-01-04@04:06'
    REM MSG moondatetime(0) is inaccurate! - [x]
endif

set x moondatetime(1, d, 0:00)
if x < '2011-01-12@06:31' || x > '2011-01-12@06:35'
    REM MSG moondatetime(1) is inaccurate! - [x]
endif

set x moondatetime(2, d, 0:00)
if x < '2011-01-19@16:20' || x > '2011-01-19@16:24'
    REM MSG moondatetime(2) is inaccurate! - [x]
endif

set x moondatetime(3, d, 0:00)
if x < '2011-01-26@07:57' || x > '2011-01-26@08:01'
    REM MSG moondatetime(3) is inaccurate! - [x]
endif

set x soleq(0, 2011)
if x < '2011-03-20@19:18' || x > '2011-03-20@19:22'
    REM MSG soleq(0) is inaccurate! - [x]
endif

set x soleq(1, 2011)
if x < '2011-06-21@13:14' || x > '2011-06-21@13:18'
    REM MSG soleq(1) is inaccurate! - [x]
endif

set x soleq(2, 2011)
if x < '2011-09-23@05:02' || x > '2011-09-23@05:06'
    REM MSG soleq(2) is inaccurate! - [x]
endif

set x soleq(3, 2011)
if x < '2011-12-22@00:28' || x > '2011-12-22@00:32'
    REM MSG soleq(3) is inaccurate! - [x]
endif


if $NumTrig == 0
    REM MSG All astronomical functions look OK
endif