473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Issue with Date.parse and 10/29/2001

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

Edward
Jul 23 '05 #1
3 1383
eb*****@sbcglobal.net (Need Top Programmer) writes:
Has anyone else encountered this issue? When you do Date.parse(date1)
and date1=10/29/2001 it seems to add an an additional 3600000 ms for
no reason.


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 - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #2
Lee
Need Top Programmer said:

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

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

Jul 23 '05 #3
JRS: In article <41*************************@posting.google.com> , seen
in news:comp.lang.javascript, Need Top Programmer
<eb*****@sbcglobal.net> posted at Thu, 27 May 2004 09:14:21 :
Has anyone else encountered this issue? When you do Date.parse(date1)
and date1=10/29/2001 it seems to add an an additional 3600000 ms for
no reason.


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.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
13
by: Dr John Stockton | last post by:
Javascript date strings can have a one-letter postfix; it is taken as indicating time zone (not J, which causes NaN). // IIRC, VB accepts A & P in that location, for AM & PM. In my MS IE 4, the...
10
by: Newsscanner | last post by:
Hello, In my MySQL database, one of the fields eople have to fill in is "DOB" (Date of Birth). I have now managed to begin inserting data into my DB via a form, the data type for the DOB field...
1
by: Scott Dunham | last post by:
I'm trying to select records between 2 different times, but I can't seem to get Access to see anything other than the date. For instance, criteria "Between #11/12/2001 1:45:00 PM# and #11/12/2001...
1
by: Tan | last post by:
Could anyone tell me how I can not use british date format using <globalization culture="en-GB" uiCulture="en-GB"/> in the webconfig with the line of code above i can not get the format is...
3
by: Nicolas | last post by:
Hi everybody, I'm stuck for a couple of days now to the following issue, concerning fixed/default attributes and multiple namespaces. Any help would be greatly appreciated... I'm using Xerces...
0
by: Shades799 | last post by:
Hi All, I was wondering if any of you could help me with a very difficult problem that I am having. I have an ASP site that works with an Oracle database using an ADODB connection. This...
0
by: Alphamacaroon | last post by:
All, I am using the SoapFormatter class to parse/deserialize SOAP/RPC calls from a remote client. The SoapFormatter works like a charm when the message contains simple parameter types (like...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.