Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions USAGE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is off.


latitude/longitude coordinates: floating-point degrees, with [NESW] appended. Default: Bingham, England.

Expand All @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions sunwait.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo, 'usgae' -> usage

//

#include <stdio.h>
Expand Down Expand Up @@ -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");
Expand Down