calendar.3 (7f3dea244c40159a41ab22da77a434d7c5b5e85a) | calendar.3 (c6ff3a1bf74d96278726113478b2c66884aab584) |
---|---|
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. --- 84 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 | 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. --- 84 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 --- |