Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q808

irt.org | About | Feedback | 1915 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q808

Sent by
Dr John Stockton on October 27, 2000 at 01:43:50:

Worth:
Not worth reading

Length:
Too long

Technical:
Not technical enough

Comments:
Current browsers (MSIE 4) can do much better.

For getJD(Y, M, D), consider for the day number
(Date.UTC(Y, M, D)-Date.UTC(Y, 0, 0)/86400000

This saves bothering with Leap Year & month-length : these can if wanted be done by

function DaysInMonth(y, m)
with (new Date(y, m+1, 1)) { setDate(0) ; return getDate() } }

function LeapYear(y)
{ return DaysInMonth(y, 1)==29 }

This window is ridiculously small.



Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.