HighDots Forums  

Re: getTime() bug

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: getTime() bug in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dr John Stockton
 
Posts: n/a

Default Re: getTime() bug - 06-01-2005 , 09:12 AM






JRS: In article <v32ne.10421$zb.3278@trndny01>, dated Tue, 31 May 2005
18:30:51, seen in news:comp.lang.javascript, Russ Chinoy
<rchinoy (AT) platinumwebworx (DOT) com> posted :

Quote:
Has anyone ever noticed that getTime() returns the same value for both today
(5/31/2005) and tomorrow (6/1/2005)?
This is an international newsgroup.

Therefore, it is unwise to give dates in FF format which is only
preferred in one or two countries.

You mean 2005-05-31 and 2005-06-01.

You are, of course, also in error in your claim; while there *may* be
true errors (as distinct from peculiar behaviours) remaining in the
javascript date object, it is most unlikely that there could be one in
three well-known browsers relating to the fundamentals of the Gregorian
Calendar.

Comparing dates by comparing the results of getTime is of itself
reliable - though date objects can be compared without explicit getTime
- but there are pitfalls nearby.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.