{"id":307,"date":"2020-05-22T19:56:37","date_gmt":"2020-05-22T19:56:37","guid":{"rendered":"https:\/\/ludwig.in-chemnitz.de\/chrono\/?page_id=307"},"modified":"2020-05-22T19:56:37","modified_gmt":"2020-05-22T19:56:37","slug":"code","status":"publish","type":"page","link":"https:\/\/ludwig.in-chemnitz.de\/chrono\/code\/","title":{"rendered":"Code"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>Wochentage:\nSOW = strtotime(SPrepW)+SLatW*60 => {strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400}\nGUW = strtotime(SEW)+SIW*60      => {strtotime(SEW)+SIW*60-floor((strtotime(SEW)+SIW*60)\/86400)*86400}\nSDW = strtotime(SEW)-SOW         => {strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400}\nTBTW= GUW-strtotime(BTW)         => {strtotime(SEW)+SIW*60-floor((strtotime(SEW)+SIW*60)\/86400)*86400-strtotime(BTW)-floor((strtotime(SEW)+SIW*60-floor((strtotime(SEW)+SIW*60)\/86400)*86400-strtotime(BTW))\/86400)*86400}\nMSW = SOW+SDW\/2                  => {strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400+(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400+(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400}\nfreie Tage:\nSOF = strtotime(SPrepF)+SLatF*60 => {strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400}\nGUF = strtotime(SEF)+SIF*60      => {strtotime(SEF)+SIF*60-floor((strtotime(SEF)+SIF*60)\/86400)*86400}\nSDF = strtotime(SEF)-SOF         => {strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400}\nTBTF= GUF-strtotime(BTF)         => {strtotime(SEF)+SIF*60-floor((strtotime(SEF)+SIF*60)\/86400)*86400-strtotime(BTF)-floor((strtotime(SEF)+SIF*60-floor((strtotime(SEF)+SIF*60)\/86400)*86400-strtotime(BTF))\/86400)*86400}\nMSF = SOF+SDF\/2                  => {strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400}\nAllgemeine Werte\nSDweek = (5*SDW+2*SDF)\/7         => {(5*(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)+2*(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400))\/7}\nMSFSC = if(AlarmF==N,if(SDF>SDW,MSF-(SDF-SDweek)\/2,MSF),\"N\/A\")\n                                 => {if(AlarmF==N,if(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400>strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400,strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400-(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400-((5*(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)+2*(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400))\/7))\/2,strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400),\"N\/A\")}\nSLossweek = if(SDF>SDW,5*(SDweek-SDW),2*(SDweek-SDF))\n                                 => {if(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400>strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400,5*((5*(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)+2*(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400))\/7-(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)),2*((5*(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)+2*(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400))\/7-(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)))}\nSJLrel = MSF - MSW               => {(strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400)-(strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400+(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400+(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400)}\nSJL = abs(MSF-MSW)               => {abs((strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400+(strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400-floor((strtotime(SEF)-strtotime(SPrepF)+SLatF*60-floor((strtotime(SPrepF)+SLatF*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400)-(strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400+(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)\/2-floor((strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400+(strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400-floor((strtotime(SEW)-strtotime(SPrepW)+SLatW*60-floor((strtotime(SPrepW)+SLatW*60)\/86400)*86400)\/86400)*86400)\/2)\/86400)*86400))}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/pages\/307"}],"collection":[{"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":1,"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/pages\/307\/revisions"}],"predecessor-version":[{"id":309,"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/pages\/307\/revisions\/309"}],"wp:attachment":[{"href":"https:\/\/ludwig.in-chemnitz.de\/chrono\/wp-json\/wp\/v2\/media?parent=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}