Re: FAQ Topic - How do I format the lastModified date with javascript? (2009-01-12)



In comp.lang.javascript message <I25boiGfd2fJFwlL@xxxxxxxxxxxxxxxxxxxxxx
8924D9443D28E23ED5CD>, Tue, 27 Jan 2009 19:58:23, John G Harris
<john@xxxxxxxxxxxxxxxxxx> posted:
On Mon, 26 Jan 2009 at 13:02:24, in comp.lang.javascript, Dr J R
Stockton wrote:

<snip>
That only needs a link to ISO 8601,
<snip>

Isn't it time you admitted that ISO 8601 doesn't specify the format of
dates displayed to consumers. It may well contain some useful ideas but
it isn't compulsory for a date in the middle of a paragraph.

It's the only sensible way of displaying a date independent of language
and locale. There's nothing wrong in following the recommendations of a
well-written standard outside the realm for which the standard, overall,
is intended. The logic of 8061 can be applied, for example, in the
writing of non-Gregorian dates and times.

Incidentally, if the date/time is on its way to or from a database then
it's ISO 9075-2 that applies (the SQL standard).

The existence of the SQL format(s) should perhaps be mentioned; but it's
not entirely a satisfactory standard. It says "The surface of the earth
is divided into zones, called time zones, in which every correct clock
tells the same time, known as local time.", which is incorrect. So is,
from all else I have read, "sometimes, but very rarely, a particular
minute will contain exactly 59, 61, or 62 seconds.". From what I had
read when a 9075-2 PDF crashed FireFox, it does not seem worth
considering for the display of lastModified.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
.



Relevant Pages

  • Re: What do people use to parse datetimes?
    ... a copy of the ISO8601 standard instead of having to reply on what ... ISO state that selling standards is one of their sources of funding. ... could have discovered that the free ZIP of the PDF is from the ISO Web ... John Stockton, nr London, UK. ...
    (comp.lang.java.programmer)
  • Re: PhP database design question
    ... design the DB, so was wondering if there is a standard to do this. ... There's no real standard for designing the DB for something like this. ... The reason for keeping the message itself separate is speed. ... Of course, displaying the actual message will be slightly slower, but you won't be doing that as much as just displaying to/from/subject. ...
    (comp.lang.php)
  • Re: my impressions of Excel 2007
    ... and Arial 10pt as standard font. ... Are you displaying a Task Pain on the ... Do the 2nd and subsequent lines use all of the space below the first ... If I want to close Excel I have to click the "X" twice? ...
    (microsoft.public.excel.misc)
  • Re: whats the standard way to make results in the REPL "invisible"
    ... suppose there is a function I am calling ... What would be the standard way of preventing that? ... (defmacro invisible (&body body) ... is there a generic method for displaying a ...
    (comp.lang.lisp)
  • whats the standard way to make results in the REPL "invisible"
    ... suppose there is a function I am calling ... What would be the standard way of preventing that? ... related question: is there a generic method for displaying a ...
    (comp.lang.lisp)