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


Groups > comp.lang.javascript > #19522

Re: About format to always use 2 digits for hour

From Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: About format to always use 2 digits for hour
Date 2013-04-28 16:49 +0100
Organization Home
Message-ID <5lq4ikDkUUfRFwCv@invalid.uk.co.demon.merlyn.invalid> (permalink)
References (1 earlier) <XnsA1ABB47255529eejj99@194.109.133.133> <EU$n+pH2qEeRFwOq@invalid.uk.co.demon.merlyn.invalid> <XnsA1AD622F8E024eejj99@194.109.133.133> <$NL54QElvteRFw5D@invalid.uk.co.demon.merlyn.invalid> <XnsA1AF6E3FF2DFeejj99@194.109.133.133>

Show all headers | View raw


In comp.lang.javascript message <XnsA1AF6E3FF2DFeejj99@194.109.133.133>,
Sat, 27 Apr 2013 10:50:16, Evertjan. <exxjxw.hannivoort@inter.nl.net>
posted:

>Dr J R Stockton wrote on 26 apr 2013 in comp.lang.javascript:
>
>> In comp.lang.javascript message <XnsA1AD622F8E024eejj99@194.109.133.133>
>> , Thu, 25 Apr 2013 09:39:07, Evertjan. <exxjxw.hannivoort@inter.nl.net>
>> posted:
>>
>>>
>>>function two(x) { return !isNaN(x) && x<10 && x>=0 ?"0" + x :x }
>
>> Gives an inappropriate string if the argument is the null value.
>
>How could you geve an appropriate string?

Give the string "null", of course.

>However, in this forum, I prefer educational symplicity to detection of
>programmatical errors.

A superb example of being exactly wrong.

Remember - the vast majority of errors in programs & scripts are
unexpected, and finding them should never be made more difficult to
giving plausible but incorrect results.

You may recall the introduction to "Million Random Digits with 100, 000
Normal Deviates", Rand Corporation (Dec 1955).


-- 
 (c) John Stockton, Surrey, UK.  ¬@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

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


Thread

About format to always use 2 digits for hour "Tony" <tony.johansson@inport.com> - 2013-04-23 15:07 +0200
  Re: About format to always use 2 digits for hour JJ <duh@nah.meh> - 2013-04-23 20:55 +0700
  Re: About format to always use 2 digits for hour "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-04-23 16:58 +0300
  Re: About format to always use 2 digits for hour "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-04-23 17:44 +0200
    Re: About format to always use 2 digits for hour "Mel Smith" <med_cutout_syntel@aol.com> - 2013-04-23 12:40 -0600
      Re: About format to always use 2 digits for hour Christoph Becker <cmbecker69@gmx.de> - 2013-04-23 21:02 +0200
    Re: About format to always use 2 digits for hour Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-24 22:12 +0100
      Re: About format to always use 2 digits for hour "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-04-25 09:39 +0200
        Re: About format to always use 2 digits for hour Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-26 20:56 +0100
          Re: About format to always use 2 digits for hour "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-04-27 10:50 +0200
            Re: About format to always use 2 digits for hour Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-28 16:49 +0100
              Re: About format to always use 2 digits for hour Stefan Weiss <krewecherl@gmail.com> - 2013-04-29 01:19 +0200
              Re: About format to always use 2 digits for hour "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-04-29 09:05 +0200
                Re: About format to always use 2 digits for hour Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-30 22:14 +0100

csiph-web