Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update USAGE.txt #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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.

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
//

#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