Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #33411

Re: convert dob into days

Subject Re: convert dob into days
Newsgroups comp.lang.javascript
References (1 earlier) <3168351.R56niFO833@PointedEars.de> <zSmVA.27368$Qg.7212@fx14.iad> <3278626.MHq7AAxBmi@PointedEars.de> <tFpVA.38624$8c1.28455@fx19.iad> <1695443.taCxCBeP46@PointedEars.de>
From Mark Lloyd <not@mail.invalid>
Message-ID <MtFVA.170554$Dm2.37866@fx44.iad> (permalink)
Organization Newshosting.com - Highest quality at a great price! www.newshosting.com
Date 2017-05-25 13:35 -0500

Show all headers | View raw


On 05/25/2017 06:45 AM, Thomas 'PointedEars' Lahn wrote:

[snip]

> Premature optimization is the root of all evil.  Suppose the OP bought into
> that approach and concluded that this would mean that they would never have
> to do the rounding, someone in the country of Absurdistan[tm] where clocks
> are switched at noon (when people would have siesta anyway) would get the
> wrong value for their age in days if an odd number of DST switches would lie
> between the dates.

If setting the time to noon could cause an error in Absurdistan[tm] 
(proximity of DST change to default time), leaving the time set to 
midnight could cause an error in any REAL place that does the DST 
changes around midnight (some timezones in Europe do).

Also, noon is actually correct. You're specifying a date only, noon 
gives you the mean ("average") of that time period.

BTW, I'd choose to still do the rounding. This is NOT an attempt to make 
the code shorter or faster, but more correct.

>>> Your From header field value is disregarding Netiquette.
>>
>> I haven't heard that one before. What about it to you consider
>> undesirable?
> 
> Use of the “invalid” TLD by you is blocking the private e-mail feedback
> channel which is an important part of Usenet communication.

When I started using usenet, I put my real email address there. I 
changed it when that capability was so often abused. I'm not talking 
about spam (it comes anyway), but about replies that belong in the 
newsgroup. I will provide an E-mail address if necessary. Usually it is not.

> See also <http://www.interhack.net/pubs/munging-harmful/>.
> 

-- 
Mark Lloyd
http://notstupid.us/

"My country is the world, and my religion is to do good." -- Thomas
Paine

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

convert dob into days negisunny38@gmail.com - 2017-05-24 09:58 -0700
  Re: convert dob into days "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-24 19:16 +0200
    Re: convert dob into days negisunny38@gmail.com - 2017-05-24 10:31 -0700
      Re: convert dob into days "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-24 23:08 +0200
    Re: convert dob into days Mark Lloyd <not@mail.invalid> - 2017-05-24 16:33 -0500
      Re: convert dob into days "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-25 16:29 +0200
  Re: convert dob into days Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-24 20:06 +0200
    Re: convert dob into days Mark Lloyd <not@mail.invalid> - 2017-05-24 16:24 -0500
      Re: convert dob into days Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-25 01:00 +0200
        Re: convert dob into days Mark Lloyd <not@mail.invalid> - 2017-05-24 19:35 -0500
          Re: convert dob into days Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-05-25 11:27 +0000
          Re: convert dob into days Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-25 13:45 +0200
            Re: convert dob into days Mark Lloyd <not@mail.invalid> - 2017-05-25 13:35 -0500
              Re: convert dob into days Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-05-26 00:35 +0200
              Re: convert dob into days Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-25 15:45 -0700
                Re: convert dob into days "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-05-26 09:12 +0200
            Re: convert dob into days Dr J R Stockton <reply1700@merlyn.demon.co.uk.invalid> - 2017-05-26 18:40 +0100
              Re: convert dob into days Sam E <why.should.this@be.email.invalid> - 2017-05-27 10:14 -0500
  Re: convert dob into days Dr J R Stockton <J.R.Stockton@physics.org> - 2017-05-24 14:36 -0700

csiph-web