diff options
author | Sami Kerola | 2011-08-12 20:19:52 +0200 |
---|---|---|
committer | Sami Kerola | 2011-08-12 20:19:52 +0200 |
commit | f98d4f766e39efd255c9b70d3780feea9c7a7898 (patch) | |
tree | 7eef63942216eb29ef1cb1532305ee45e6a67f42 /misc-utils | |
parent | docs: remove README.clear (diff) | |
download | kernel-qcow2-util-linux-f98d4f766e39efd255c9b70d3780feea9c7a7898.tar.gz kernel-qcow2-util-linux-f98d4f766e39efd255c9b70d3780feea9c7a7898.tar.xz kernel-qcow2-util-linux-f98d4f766e39efd255c9b70d3780feea9c7a7898.zip |
docs: Documentation directory added
Move readme, licence, change log, relese notes and other
supplementary files to a Documentation directory. This commit
does not change contents of any other but few Makefile.am files.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/Makefile.am | 2 | ||||
-rw-r--r-- | misc-utils/README.cal | 42 | ||||
-rw-r--r-- | misc-utils/README.ddate | 73 |
3 files changed, 0 insertions, 117 deletions
diff --git a/misc-utils/Makefile.am b/misc-utils/Makefile.am index 9e2e66bf7..6b7fa4ba7 100644 --- a/misc-utils/Makefile.am +++ b/misc-utils/Makefile.am @@ -8,8 +8,6 @@ usrsbin_exec_PROGRAMS = usrbin_exec_PROGRAMS = cal ddate logger look mcookie namei whereis -EXTRA_DIST += README.cal README.ddate - logger_SOURCES = logger.c $(top_srcdir)/lib/strutils.c mcookie_SOURCES = mcookie.c $(top_srcdir)/lib/md5.c diff --git a/misc-utils/README.cal b/misc-utils/README.cal deleted file mode 100644 index 638ac9dff..000000000 --- a/misc-utils/README.cal +++ /dev/null @@ -1,42 +0,0 @@ -The cal(1) date routines were written from scratch, basically from first -principles. The algorithm for calculating the day of week from any -Gregorian date was "reverse engineered". This was necessary as most of -the documented algorithms have to do with date calculations for other -calendars (e.g. julian) and are only accurate when converted to gregorian -within a narrow range of dates. - -1 Jan 1 is a Saturday because that's what cal says and I couldn't change -that even if I was dumb enough to try. From this we can easily calculate -the day of week for any date. The algorithm for a zero based day of week: - - calculate the number of days in all prior years (year-1)*365 - add the number of leap years (days?) since year 1 - (not including this year as that is covered later) - add the day number within the year - this compensates for the non-inclusive leap year - calculation - if the day in question occurs before the gregorian reformation - (3 sep 1752 for our purposes), then simply return - (value so far - 1 + SATURDAY's value of 6) modulo 7. - if the day in question occurs during the reformation (3 sep 1752 - to 13 sep 1752 inclusive) return THURSDAY. This is my - idea of what happened then. It does not matter much as - this program never tries to find day of week for any day - that is not the first of a month. - otherwise, after the reformation, use the same formula as the - days before with the additional step of subtracting the - number of days (11) that were adjusted out of the calendar - just before taking the modulo. - -It must be noted that the number of leap years calculation is sensitive -to the date for which the leap year is being calculated. A year that occurs -before the reformation is determined to be a leap year if its modulo of -4 equals zero. But after the reformation, a year is only a leap year if -its modulo of 4 equals zero and its modulo of 100 does not. Of course, -there is an exception for these century years. If the modulo of 400 equals -zero, then the year is a leap year anyway. This is, in fact, what the -gregorian reformation was all about (a bit of error in the old algorithm -that caused the calendar to be inaccurate.) - -Once we have the day in year for the first of the month in question, the -rest is trivial. diff --git a/misc-utils/README.ddate b/misc-utils/README.ddate deleted file mode 100644 index 87d0fb8bb..000000000 --- a/misc-utils/README.ddate +++ /dev/null @@ -1,73 +0,0 @@ - -PERPETUAL DATE CONVERTER FROM GREGORIAN TO POEE CALENDAR - -SEASONS - 1. Chaos -- Patron Apostle Hung Mung - 2. Discord -- Patron Apostle Dr. Van Van Mojo - 3. Confusion -- Patron Apostle Sri Syadasti - 4. Bureaucracy -- Patron Apostle Zarathud - 5. The Aftermath -- Patron Apostle the Elder Malaclypse - -DAYS OF THE WEEK* - 1. Sweetmorn *The DAYS OF THE WEEK - 2. Boomtime are named from the five - 3. Pungenday basic elements: SWEET, - 4. Prickle-Prickle BOOM, PUNGENT, PRICKLE, - 5. Setting Orange and ORANGE. - -HOLYDAYS -A. Apostle Holydays B. Seasons Holydays - 1. Mungday 1. Chaoflux - 2. Mojoday 2. Discoflux - 3. Syaday 3. Confuflux - 4. Zaraday 4. Bureflux - 5. Maladay 5. Afflux -Each occurs on the 5th Each occurs on the 50th -day of the Season day of the Season - -C. Saint Tib's Day -- occurs once every four years (1 + 4 = 5) and is - inserted between the 59th and 60th days of the Season of Chaos - - ST BT PD PP SO SM BT PD PP SO -Jan 1 2 3 4 5 1 2 3 4 5 Chs Jul 5 6 7 8 9 40 41 42 43 44 Cfn - 6 7 8 9 10 6 7 8 9 10 10 11 12 13 14 45 46 47 48 49 - 11 12 13 14 15 11 12 13 14 15 15 16 17 18 19 50 51 52 53 54 - 16 17 18 19 20 16 17 18 19 20 20 21 22 23 24 55 56 57 58 59 - 21 22 23 24 25 21 22 23 24 25 25 26 27 28 29 60 61 62 63 64 - 26 27 28 29 30 26 27 28 29 30 30 31 1 2 3 65 66 67 68 69 - 31 1 2 3 4 31 32 33 34 35 Aug 4 5 6 7 8 70 71 72 73 1 Bcy -Feb 5 6 7 8 9 36 37 38 39 40 9 10 11 12 13 2 3 4 5 6 - 10 11 12 13 14 41 42 43 44 45 14 15 16 17 18 7 8 9 10 11 - 15 16 17 18 19 46 47 48 49 50 19 20 21 22 23 12 13 14 15 16 - 20 21 22 23 24 51 52 53 54 55 24 25 26 27 28 17 18 19 20 21 - 25 26 27 28* 1 56 57 58 59 60 29 30 31 1 2 22 23 24 25 26 -Mar 2 3 4 5 6 61 62 63 64 65 Sep 3 4 5 6 7 27 28 29 30 31 - 7 8 9 10 11 66 67 68 69 70 8 9 10 11 12 32 33 34 35 36 - 12 13 14 15 16 71 72 73 1 2 Dsc 13 14 15 16 17 37 38 39 40 41 - 17 18 19 20 21 3 4 5 6 7 18 19 20 21 22 42 43 44 45 46 - 22 23 24 25 26 8 9 10 11 12 23 24 25 26 27 47 48 49 50 51 - 27 28 29 30 31 13 14 15 16 17 28 29 30 1 2 52 53 54 55 56 -Apr 1 2 3 4 5 18 19 20 21 22 Oct 3 4 5 6 7 57 58 59 60 61 - 6 7 8 9 10 23 24 25 26 27 8 9 10 11 12 62 63 64 65 66 - 11 12 13 14 15 28 29 30 31 32 13 14 15 16 17 67 68 69 70 71 - 16 17 18 19 20 33 34 35 36 37 18 19 20 21 22 72 73 1 2 3 Afm - 21 22 23 24 25 38 39 40 41 42 23 24 25 26 27 4 5 6 7 8 - 26 27 28 29 30 43 44 45 46 47 28 29 30 31 1 9 10 11 12 13 -May 1 2 3 4 5 48 49 50 51 52 Nov 2 3 4 5 6 14 15 16 17 18 - 6 7 8 9 10 53 54 55 56 57 7 8 9 10 11 19 20 21 22 23 - 11 12 13 14 15 58 59 60 61 62 12 13 14 15 16 24 25 26 27 28 - 16 17 18 19 20 63 64 65 66 67 17 18 19 20 21 29 30 31 32 33 - 21 22 23 24 25 68 69 70 71 72 22 23 24 25 26 34 35 36 37 38 - 26 27 28 29 30 73 1 2 3 4 Cfn 27 28 29 30 1 39 40 41 42 43 - 31 1 2 3 4 5 6 7 8 9 Dec 2 3 4 5 6 44 45 46 47 48 -Jun 5 6 7 8 9 10 11 12 13 14 7 8 9 10 11 49 50 51 52 53 - 10 11 12 13 14 15 16 17 18 19 12 13 14 15 16 54 55 56 57 58 - 15 16 17 18 19 20 21 22 23 24 17 18 19 20 21 59 60 61 62 63 - 20 21 22 23 24 25 26 27 28 29 22 23 24 25 26 64 65 66 67 68 - 25 26 27 28 29 30 31 32 33 34 27 28 29 30 31 69 70 71 72 73 - 30 1 2 3 4 35 36 37 38 39 [1970 = 3136] [Next St. Tib's Day in 3138] - - SACRED DOCUMENT OF THE FROGS (old Erisian poem): - 73 Days hath - Chaos, Discord, Confusion, Bureaucracy, and Aftermath - |