Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q808, on October 27, 2000 at 01:43:50:

You are here: 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.


©2018 Martin Webb