From d7940ae6132d42abbe202a7a0b78c7939e507175 Mon Sep 17 00:00:00 2001 From: Everett Harris <43390507+harrisek@users.noreply.github.com> Date: Sat, 20 Jan 2024 01:54:13 -0500 Subject: [PATCH 1/3] Update USAGE.txt --- USAGE.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/USAGE.txt b/USAGE.txt index 2204431..1162f9c 100644 --- a/USAGE.txt +++ b/USAGE.txt @@ -40,7 +40,7 @@ Offset: Target date. Only useful with major-options: 'report' or 'list'. Default: today d [DD] Set the target Day-of-Month to calculate for. 1 to 31. m [MM] Set the target Month to calculate for. 1 to 12. - y [YYYY] Set the target Year to calculate for. 2000 to 2099. + y [YY] Set the target Year to calculate for. 0 to 99. latitude/longitude coordinates: floating-point degrees, with [NESW] appended. Default: Bingham, England. @@ -63,7 +63,7 @@ Example 4: sunwait list 7 gmt sunrise angle 3 List next 7 days sunrise times, custom +3 degree twilight angle, default location. Uses GMT; as any change in daylight saving over the specified period is not considered. -Example 5: sunwait report y 20 m 3 d 15 10.49S 105.55E +Example 5: sunwait report y 22 m 3 d 15 10.49S 105.55E Produce a report of the different sunrises and sunsets on an arbitrary day (2022/03/15) for an arbitrary location (Christmas Island) Note that program uses C library functions to determine time and localtime. From 52a72e1074a7210fd24eb93a06b51e157fe6cf18 Mon Sep 17 00:00:00 2001 From: Everett Harris <43390507+harrisek@users.noreply.github.com> Date: Sun, 21 Jan 2024 08:49:35 -0500 Subject: [PATCH 2/3] Update sunwait.c Changed the usage data to be consistent with the program behavior. --- sunwait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunwait.c b/sunwait.c index 8cb9fb8..3aaa9c4 100755 --- a/sunwait.c +++ b/sunwait.c @@ -3,7 +3,7 @@ // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv CHANGE ME // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv CHANGE ME -const double VERSION=0.91; // <<<<<<<<< CHANGE ME +const double VERSION=0.92; // <<<<<<<<< CHANGE ME // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ CHANGE ME // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ CHANGE ME @@ -127,7 +127,7 @@ static void print_usage () printf ("Target date. Only useful with major-options: 'report' or 'list'. Default: today\n"); printf (" d [DD] Set the target Day-of-Month to calculate for. 1 to 31.\n"); printf (" m [MM] Set the target Month to calculate for. 1 to 12.\n"); - printf (" y [YYYY] Set the target Year to calculate for. 2000 to 2099.\n"); + printf (" y [YY] Set the target Year to calculate for. 0 to 99.\n"); printf ("\n"); printf ("latitude/longitude coordinates: floating-point degrees, with [NESW] appended. Default: Bingham, England.\n"); printf ("\n"); From b7c66c9d3183a6cf0e6f8940a2ebd60e42fa9df6 Mon Sep 17 00:00:00 2001 From: Everett Harris <43390507+harrisek@users.noreply.github.com> Date: Sun, 21 Jan 2024 08:51:34 -0500 Subject: [PATCH 3/3] Update sunwait.c Update change log --- sunwait.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sunwait.c b/sunwait.c index 3aaa9c4..032b42c 100755 --- a/sunwait.c +++ b/sunwait.c @@ -21,6 +21,7 @@ const double VERSION=0.92; // <<<<<<<<< CHANGE ME // IFC 2015-05-27 0.8 Resolve 'dodgy day' and cleanup // TLJ 2020-10-03 0.9 Fix build on osx // DRR 2022-09-16 0.91 Fix build with modern GCC +// EKH 2024-01-21 0.92 Changed usgae data to be consistent with program behavior in regards to value acceptable to the year input // #include