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. diff --git a/sunwait.c b/sunwait.c index 8cb9fb8..032b42c 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 @@ -21,6 +21,7 @@ const double VERSION=0.91; // <<<<<<<<< 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 @@ -127,7 +128,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");