X-Received: by 10.55.72.82 with SMTP id v79mr1923563qka.45.1508948248967; Wed, 25 Oct 2017 09:17:28 -0700 (PDT) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!k31no1837613qta.1!news-out.google.com!r5ni342qtc.1!nntp.google.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post02.iad!fx35.iad.POSTED!not-for-mail Subject: Re: its quiet here - test Newsgroups: comp.lang.php References: <59f0365f$0$746$e4fe514c@news.xs4all.nl> From: Mark Lloyd User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <59f0365f$0$746$e4fe514c@news.xs4all.nl> Lines: 23 Message-ID: X-Complaints-To: abuse(at)newshosting.com NNTP-Posting-Date: Wed, 25 Oct 2017 16:17:28 UTC Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com Date: Wed, 25 Oct 2017 11:17:28 -0500 X-Received-Bytes: 1533 X-Received-Body-CRC: 763723468 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Bytes: 1471 Xref: csiph.com comp.lang.php:17589 On 10/25/2017 01:59 AM, Luuk wrote: > what? > > On 25-10-17 00:01, Mark Lloyd wrote: It was in September when I first wrote the "dtc" (days until Christmas) algorithm. It was expected to change the number of days at midnight, but it was actually changing at 1AM. The reason being the 25-hour day in November (National mess-with-your-clock day, where the hour 1:00:00 to 1:59:59 AM occurs twice). Assuming a day always has 24 hours (24 * 60 * 60 = 86400 seconds) is one of the common mistakes people make when working with dates. -- 61 days until the winter celebration (Monday December 25, 2017 12:00:00 AM for 1 day). Mark Lloyd http://notstupid.us/ "Heresy is only another word for freedom of thought." [Graham Greene, 1981]