Issue with Date.parse and 10/29/2001

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Need Top Programmer

    Issue with Date.parse and 10/29/2001

    Has anyone else encountered this issue? When you do Date.parse(date 1)
    and date1=10/29/2001 it seems to add an an additional 3600000 ms for
    no reason.


    Thanks,

    Edward
  • Lasse Reichstein Nielsen

    #2
    Re: Issue with Date.parse and 10/29/2001

    ebrooks@sbcglob al.net (Need Top Programmer) writes:
    [color=blue]
    > Has anyone else encountered this issue? When you do Date.parse(date 1)
    > and date1=10/29/2001 it seems to add an an additional 3600000 ms for
    > no reason.[/color]

    It's daylight saving. The date 10/28/2001 (apparently mm/dd/yyyy
    format) is the Sunday where daylight saving were dropped, so it was 25
    hours long (in local time).

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • Lee

      #3
      Re: Issue with Date.parse and 10/29/2001

      Need Top Programmer said:[color=blue]
      >
      >Has anyone else encountered this issue? When you do Date.parse(date 1)
      >and date1=10/29/2001 it seems to add an an additional 3600000 ms for
      >no reason.[/color]


      It doesn't happen to me, but then we don't do Daylight Saving Time.

      Comment

      • Dr John Stockton

        #4
        Re: Issue with Date.parse and 10/29/2001

        JRS: In article <41d0903.040527 0814.68c2854a@p osting.google.c om>, seen
        in news:comp.lang. javascript, Need Top Programmer
        <ebrooks@sbcglo bal.net> posted at Thu, 27 May 2004 09:14:21 :
        [color=blue]
        >Has anyone else encountered this issue? When you do Date.parse(date 1)
        >and date1=10/29/2001 it seems to add an an additional 3600000 ms for
        >no reason.[/color]

        You cannot predict what happens when "you" do it; News is an
        international medium, and includes people from all sorts of places,
        perhaps including Australia, Hawaii, and parts of Arizona and of
        southern Indiana. Whatever you mean by the above, people using systems
        correctly configured for those places will not see a 3600 second change
        of that nature near that date.

        When asking date/time related questions, it is prudent to state one's
        locality, if that is not obvious.

        In the EU, what happens at around that date is not that something is
        added; it is that 3600 seconds - the Summer Time offset - is no longer
        being subtracted; in Autumn, we need to retard clocks that keep civil
        time.

        See below.

        --
        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
        <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
        <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
        <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

        Comment

        Working...