Deleted Added
full compact
calendar.3 (50476) calendar.3 (57686)
1.\" Copyright (c) 1997 Wolfgang Helbig
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 1997 Wolfgang Helbig
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libcalendar/calendar.3 50476 1999-08-28 00:22:10Z peter $
25.\" $FreeBSD: head/lib/libcalendar/calendar.3 57686 2000-03-02 09:14:21Z sheldonh $
26.\"
27.Dd November 29, 1997
28.Dt CALENDAR 3
29.Os
30.Sh NAME
31.Nm easterg ,
32.Nm easterog ,
33.Nm easteroj ,

--- 59 unchanged lines hidden (view full) ---

93The functions
94.Fn gdate ,
95.Fn jdate ,
96.Fn ndaysg
97and
98.Fn ndaysj
99provide conversions between the common "year, month, day" notation
100of a date and the "number of days" representation, which is better suited
26.\"
27.Dd November 29, 1997
28.Dt CALENDAR 3
29.Os
30.Sh NAME
31.Nm easterg ,
32.Nm easterog ,
33.Nm easteroj ,

--- 59 unchanged lines hidden (view full) ---

93The functions
94.Fn gdate ,
95.Fn jdate ,
96.Fn ndaysg
97and
98.Fn ndaysj
99provide conversions between the common "year, month, day" notation
100of a date and the "number of days" representation, which is better suited
101for calculations. The days are numbered from March 1st year 1 B.C., starting
101for calculations.
102The days are numbered from March 1st year 1 B.C., starting
102with zero, so the number of a day gives the number of days since March 1st,
103year 1 B.C. The conversions work for nonnegative day numbers only.
104.Pp
105The
106.Fn gdate
107and
108.Fn jdate
109functions

--- 18 unchanged lines hidden (view full) ---

128functions
129assume Gregorian Calendar after October 4, 1582 and Julian Calendar before,
130whereas
131.Fn jdate
132and
133.Fn ndaysj
134assume Julian Calendar throughout.
135.Pp
103with zero, so the number of a day gives the number of days since March 1st,
104year 1 B.C. The conversions work for nonnegative day numbers only.
105.Pp
106The
107.Fn gdate
108and
109.Fn jdate
110functions

--- 18 unchanged lines hidden (view full) ---

129functions
130assume Gregorian Calendar after October 4, 1582 and Julian Calendar before,
131whereas
132.Fn jdate
133and
134.Fn ndaysj
135assume Julian Calendar throughout.
136.Pp
136The two calendars differ by the definition of the leap year. The
137The two calendars differ by the definition of the leap year.
138The
137Julian Calendar says every year that is a multiple of four is a
139Julian Calendar says every year that is a multiple of four is a
138leap year. The Gregorian Calendar excludes years that are multiples of
140leap year.
141The Gregorian Calendar excludes years that are multiples of
139100 and not multiples of 400.
140This means the years 1700, 1800, 1900, 2100 are not leap years
141and the year 2000 is
142a leap year.
143The new rules were inaugurated on October 4, 1582 by deleting ten
142100 and not multiples of 400.
143This means the years 1700, 1800, 1900, 2100 are not leap years
144and the year 2000 is
145a leap year.
146The new rules were inaugurated on October 4, 1582 by deleting ten
144days following this date. Most catholic countries adopted the new
147days following this date.
148Most catholic countries adopted the new
145calendar by the end of the 16th century, whereas others stayed with
149calendar by the end of the 16th century, whereas others stayed with
146the Julian Calendar until the 20th century. The United Kingdom and
150the Julian Calendar until the 20th century.
151The United Kingdom and
147their colonies switched on September 2, 1752. They already had to
148delete 11 days.
149.Pp
150The function
151.Fn week
152returns the number of the week which contains the day numbered
153.Fa nd .
154The argument

--- 43 unchanged lines hidden ---
152their colonies switched on September 2, 1752. They already had to
153delete 11 days.
154.Pp
155The function
156.Fn week
157returns the number of the week which contains the day numbered
158.Fa nd .
159The argument

--- 43 unchanged lines hidden ---