JavaScript 1.5 Reference - Date

VERIFIED FIXED

Status

Documentation
Web Developer
VERIFIED FIXED
15 years ago
15 years ago

People

(Reporter: bc, Assigned: bc)

Tracking

Details

(URL)

(Assignee)

Description

15 years ago
From Bug 70879#c2

More errata discovered:

(1) Date().setFullYear(yearValue[, monthValue, dayValue])

should read:

Date().setFullYear(yearValue[, monthValue[, dayValue]])

The dayValue argument is optional even if a monthValue argument is provided.

Similarly:

Date().setHours(hoursValue[, minutesValue[, secondsValue[, msValue]]]) 
Date().setMinutes(minutesValue[, secondsValue[, msValue]]) 
Date().setUTCFullYear(yearValue[, monthValue[, dayValue]]) 
Date().setUTCHours(hoursValue[, minutesValue[, secondsValue[, msValue]]]) 
	// note:  the method above in the syntax example is spelled setUTCHour
Date().setUTCMinutes(minutesValue[, secondsValue[, msValue]])
Date.UTC(year, month, day[, hrs[, min[, sec[, ms]]]]) 

(4) Date() page setMinutes link points to getSeconds target.
(Assignee)

Comment 1

15 years ago
(7) Date().toLocaleString() overrides Object().toLocaleString(); there is no 
mention of this in the Date().toLocaleString() section.

(8) Date() object page does not include documentation on:
	Date().toLocaleTimeString()
	Date().toLocaleDateString()
(Assignee)

Comment 2

15 years ago
The current version is located at:

http://elwood.netscape.com:10050/library/manuals/2000/javascript/1.5/reference/date.html

Fixed all but 7)

Phil, can you review by Wed/Thurs so I can push this on Friday? Thanks.
Status: NEW → ASSIGNED

Comment 3

15 years ago
Bob: looks good. I noticed these two points, however:


I. The setUTCHours() example is missing an 's' at the end of the method name:

                theBigDay.setUTCHour(8);


II. We are presenting the Date.UTC() method this way:

   Date.UTC(year, month, day[, hrs[, min[, sec[, ms]]]])

But ECMA says the |day| parameter to |Date.UTC()| is optional: 

   Date.UTC (year, month[, day[, hrs[, min[, sec[, ms ]]]]])
(Assignee)

Comment 4

15 years ago
Thanks. changes made to elwood. Will mark fixed when this goes out Friday.
(Assignee)

Comment 5

15 years ago
f
Status: ASSIGNED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED

Comment 6

15 years ago
Verified Fixed.

Bob - will we address 7) above, or let that go? Note the verbiage
would be the same as already exists for the date.toString() method -
Status: RESOLVED → VERIFIED
(Assignee)

Comment 7

15 years ago
I will go ahead and fix it in my tree. If anyone would like to review the entire
reference and collect all such missing "overrides" I will add them but I don't
have time to do a full review at the moment.
You need to log in before you can comment on or make changes to this bug.