{"id":205,"date":"2012-11-01T12:51:59","date_gmt":"2012-11-01T12:51:59","guid":{"rendered":"http:\/\/www.simon-christen.ch\/wordpress\/?p=205"},"modified":"2012-11-01T14:25:49","modified_gmt":"2012-11-01T14:25:49","slug":"kalenderrechnen","status":"publish","type":"post","link":"https:\/\/www.simon-christen.ch\/?p=205","title":{"rendered":"Kalenderrechnen"},"content":{"rendered":"<p>Welcher Wochentag war der 24. Dezemeber 2007? Mit etwas \u00dcbung l\u00e4sst sich diese Frage innert Sekunden beantworten.<\/p>\n<p>Dazu ben\u00f6tigen wir zwei Tabellen:<\/p>\n<h3>Die Monatstabelle<\/h3>\n<table width=\"217\">\n<tbody>\n<tr>\n<td>Januar<\/td>\n<td>+0<\/td>\n<\/tr>\n<tr>\n<td>Februar<\/td>\n<td>+3<\/td>\n<\/tr>\n<tr>\n<td>M\u00e4rz<\/td>\n<td>+3<\/td>\n<\/tr>\n<tr>\n<td>April<\/td>\n<td>+6<\/td>\n<\/tr>\n<tr>\n<td>Mai<\/td>\n<td>+1<\/td>\n<\/tr>\n<tr>\n<td>Juni<\/td>\n<td>+4<\/td>\n<\/tr>\n<tr>\n<td>Juli<\/td>\n<td>+6<\/td>\n<\/tr>\n<tr>\n<td>August<\/td>\n<td>+2<\/td>\n<\/tr>\n<tr>\n<td>September<\/td>\n<td>+5<\/td>\n<\/tr>\n<tr>\n<td>Oktober<\/td>\n<td>+0<\/td>\n<\/tr>\n<tr>\n<td>November<\/td>\n<td>+3<\/td>\n<\/tr>\n<tr>\n<td>Dezember<\/td>\n<td>+5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Die Jahrestablle<\/h3>\n<table>\n<tbody>\n<tr>\n<td>&#8230;<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>2013<\/td>\n<td>+1<\/td>\n<\/tr>\n<tr>\n<td>2012<\/td>\n<td>+0 (SJ)<\/td>\n<\/tr>\n<tr>\n<td>2011<\/td>\n<td>+5<\/td>\n<\/tr>\n<tr>\n<td>2010<\/td>\n<td>+4<\/td>\n<\/tr>\n<tr>\n<td>2009<\/td>\n<td>+3<\/td>\n<\/tr>\n<tr>\n<td>2008<\/td>\n<td>+2 (SJ)<\/td>\n<\/tr>\n<tr>\n<td>2007<\/td>\n<td>+0<\/td>\n<\/tr>\n<tr>\n<td>2006<\/td>\n<td>+6<\/td>\n<\/tr>\n<tr>\n<td>2005<\/td>\n<td>+5<\/td>\n<\/tr>\n<tr>\n<td>2004<\/td>\n<td>+4 (SJ)<\/td>\n<\/tr>\n<tr>\n<td>&#8230;<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Da in einem Schaltjahr (SJ) der Schalttag erst am 29. Februar ist, muss f\u00fcr die Monate Januar und Februar noch ein Tag abgezogen werden (-1).<\/p>\n<p>Der Algorithmus f\u00fcr die Berechnung des Wochentages geht nun folgendermassen:<\/p>\n<ol>\n<li>Setze Z\u00e4hler auf 0:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-8e3c35bde3054f836d65e0b09fc020de_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/><\/li>\n<li>\u00dcberpr\u00fcfe Jahr, addiere Zahl zu Z\u00e4hler:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-c8f88c35783726cd50f6d91d6359881f_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#105;&#43;&#74;&#97;&#104;&#114;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"96\" style=\"vertical-align: -1px;\"\/><\/li>\n<li>Falls Schaltjahr und Monat kleiner als 3, subtrahiere -1:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-d22ee127b3daddad709e0fe3e4bd6734_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#32;&#61;&#105;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"66\" style=\"vertical-align: -1px;\"\/><\/li>\n<li>\u00dcberpr\u00fcfe Monat, addiere Zahl zu Z\u00e4hler:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-a38c081815ba0fcbfb7fda7fb5eb0efd_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#105;&#43;&#77;&#111;&#110;&#97;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"112\" style=\"vertical-align: -1px;\"\/><\/li>\n<li>\u00dcberpr\u00fcfe Tag, addiere Zahl zu Z\u00e4hler:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-07e340b1b95527def92e30d6c42d2827_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#105;&#43;&#84;&#97;&#103;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"88\" style=\"vertical-align: -4px;\"\/><\/li>\n<li>Rechen Modulo 7:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-b36a545b48712a615ffa482b0c3b5dd1_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#105;&#32;&#92;&#112;&#109;&#111;&#100;&#32;&#55;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"106\" style=\"vertical-align: -4px;\"\/><\/li>\n<li>Das Resultat ist der Wochentag, also<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-2fe0b45bf2232d58d398fc38faadda1a_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#61;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"52\" style=\"vertical-align: -1px;\"\/> -&gt; Montag<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-79c72a9272be8d29a42327a4470e492b_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#61;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"52\" style=\"vertical-align: 0px;\"\/> -&gt; Dienstag<br \/>\netc<\/li>\n<\/ol>\n<p>Am Beispiel vom 24. Dezember 2007 ergibt dies folgende Rechnung:<\/p>\n<ol>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-8e3c35bde3054f836d65e0b09fc020de_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-8e3c35bde3054f836d65e0b09fc020de_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-8e3c35bde3054f836d65e0b09fc020de_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-f8f9243da8f2f0eb830a51ce61a955cc_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"38\" style=\"vertical-align: 0px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-2fa90eb45cff5130b7d526bb7cb77d8a_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#50;&#57;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"48\" style=\"vertical-align: 0px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-4b1b068472d6005a382aee2335fbecaa_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#105;&#61;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"38\" style=\"vertical-align: -1px;\"\/><\/li>\n<li>Montag<\/li>\n<\/ol>\n<h3>Erweiterung<\/h3>\n<p>Der ambitioniert Rechner will gerne alle Daten der letzten Jahrhunderte kenne, die ganze Tabelle auswendig zu lernen ist daher idiotisch.<\/p>\n<p>Zuerts kurz noch zu Schaltjahre:<br \/>\nSchaltjahre finden alle 4 Jahre statt. Alle hundert Jahre (&#8230;,1500, 1700, 1800, 1900, 2100, &#8230;) f\u00e4llt es aus, alle 400 Jahre (&#8230;, 1200, 1600, 2000, &#8230;) findet es trotzdem statt.<\/p>\n<p>Beginnen wir im Jahr 1901, so m\u00fcssen wir f\u00fcr die n\u00e4chsten 200 Jahre nur die 4 Jahres Schaltjahrregel ber\u00fccksichtigen.<\/p>\n<p>Der 1. Januar 1901 war gl\u00fccklicherweise ein Dienstag &#8211; somit ist<\/p>\n<table>\n<tbody>\n<tr>\n<td>1901<\/td>\n<td>+1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Wir rechnen nun also<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 43px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-2e7f84594793b3bdc8c3a02ea3ca9491_l3.png\" height=\"43\" width=\"346\" class=\"ql-img-displayed-equation \" alt=\"&#92;&#91;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#74;&#97;&#104;&#114;&#32;&#45;&#32;&#49;&#57;&#48;&#48;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#108;&#102;&#108;&#111;&#111;&#114;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#74;&#97;&#104;&#114;&#32;&#45;&#32;&#49;&#57;&#48;&#48;&#125;&#123;&#52;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#114;&#102;&#108;&#111;&#111;&#114;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#112;&#109;&#111;&#100;&#32;&#55;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>und erhalten die + Zahl f\u00fcr das jeweilige Jahr.<\/p>\n<p>Am Beispiel von 2007 erhalten wir:<\/p>\n<ol>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-7166c492165692417b25e0f7e1aa93f9_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#50;&#48;&#48;&#55;&#45;&#49;&#57;&#48;&#48;&#32;&#61;&#32;&#49;&#48;&#55;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"143\" style=\"vertical-align: -1px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-68d08b28f8ddd72554b4235a3033046a_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#92;&#108;&#101;&#102;&#116;&#92;&#108;&#102;&#108;&#111;&#111;&#114;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#48;&#55;&#125;&#123;&#52;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#114;&#102;&#108;&#111;&#111;&#114;&#32;&#61;&#32;&#50;&#54;\" title=\"Rendered by QuickLaTeX.com\" height=\"23\" width=\"80\" style=\"vertical-align: -7px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-77dd5d519edad43577e7642afb22eb32_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#49;&#48;&#55;&#43;&#50;&#54;&#61;&#49;&#51;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"116\" style=\"vertical-align: -1px;\"\/><\/li>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.simon-christen.ch\/wp\/simon\/wp-content\/ql-cache\/quicklatex.com-52290a7f12a2c1090363724780e452b5_l3.png\" class=\"ql-img-inline-formula \" alt=\"&#49;&#51;&#51;&#32;&#92;&#112;&#109;&#111;&#100;&#32;&#55;&#32;&#61;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"129\" style=\"vertical-align: -4px;\"\/><\/li>\n<\/ol>\n<p>Soeben entdecke ich den ausf\u00fchrlichen Wikipediaartikel: <a href=\"http:\/\/de.wikipedia.org\/wiki\/Wochentagsberechnung\">Wochentagsberechnung<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcher Wochentag war der 24. Dezemeber 2007? Mit etwas \u00dcbung l\u00e4sst sich diese Frage innert Sekunden beantworten. Dazu ben\u00f6tigen wir zwei Tabellen: Die Monatstabelle Januar +0 Februar +3 M\u00e4rz +3 April +6 Mai +1 Juni +4 Juli +6 August +2 September +5 Oktober +0 November +3 Dezember +5 Die Jahrestablle &#8230; 2013 +1 2012 +0 &hellip; <a href=\"https:\/\/www.simon-christen.ch\/?p=205\" class=\"more-link\"><span class=\"screen-reader-text\">Kalenderrechnen<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":20,"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":209,"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions\/209"}],"wp:attachment":[{"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simon-christen.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}