8166296: add documentation for Date,RegExp,Error,JSON objects

Reviewed-by: mhaupt, sundar
This commit is contained in:
Srinivas Dama 2016-09-20 11:33:03 +02:00
parent 6b4039c28a
commit a68f80b645

View File

@ -190,3 +190,105 @@ Number.prototype.toExponential=returns a string representing the number in decim
Number.prototype.toPrecision=returns a string representing the number to a specified precision in fixed-point or exponential notation
Date.parse=returns a number, the UTC time value corresponding to the date and time interpreted from the given string argument, returns NAN if the argument is not recognized
Date.UTC=returns the number of milliseconds in the given date object since January 1, 1970, 00:00:00 universal time
Date.now=returns the number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC
Date.prototype.toString=returns the string value representing the given date object
Date.prototype.toDateString=returns the string value representing the date portion of the given date object
Date.prototype.toTimeString=returns the string value representing the time portion of the given date object
Date.prototype.toLocaleString=returns the string value representing the date according to language specific conventions
Date.prototype.toLocaleDateString=returns the string value representing the date portion of the given date object according to language specific conventions
Date.prototype.toLocaleTimeString=returns the string value representing the time portion of the given date object according to language specific conventions
Date.prototype.valueOf=returns the number of milliseconds between January 1, 1970, 00:00:00 UTC and the given date
Date.prototype.getTime=returns the number representing milliseconds elapsed between January 1, 1970, 00:00:00 UTC and the given date
Date.prototype.getFullYear=returns the year of the given date according to local time
Date.prototype.getUTCFullYear=returns the year of the given date according to universal time
Date.prototype.getMonth=returns the month between 0 to 11 of the given date according to local time
Date.prototype.getUTCMonth=returns the month between 0 and 11 of the given date according to universal time
Date.prototype.getDate=returns the day of the month for the given date according to local time
Date.prototype.getUTCDate=returns the day of the month for the given date according to universal time
Date.prototype.getDay=returns the day of the week for the given date according to local time, 0 represents Sunday
Date.prototype.getUTCDay=returns the day of the week for the given date according to universal time, 0 represents Sunday
Date.prototype.getHours=returns the hour in the given date, according to local time
Date.prototype.getUTCHours=returns the hour in the given date, according to universal time
Date.prototype.getMinutes=returns the minutes in the given date, according to local time
Date.prototype.getUTCMinutes=returns the minutes in the given date, according to universal time
Date.prototype.getSeconds=returns the seconds in the given date, according to local time
Date.prototype.getUTCSeconds=returns the seconds in the given date, according to universal time
Date.prototype.getMilliseconds=returns the milliseconds in the given date, according to local time
Date.prototype.getUTCMilliseconds=returns the milliseconds in the given date, according to universal time
Date.prototype.getTimezoneOffset=returns the difference between local time and UTC time in minutes
Date.prototype.setTime=sets the date object to the time given, which is represented by the number of milliseconds since January 1, 1970, 00:00:00 UTC
Date.prototype.setMilliseconds=sets the milliseconds for the given date according to local time
Date.prototype.setUTCMilliseconds=sets the milliseconds for the given date according to universal time
Date.prototype.setSeconds=sets the seconds for the given date according to local time
Date.prototype.setUTCSeconds=sets the seconds for the given date according to universal time
Date.prototype.setMinutes=sets the minutes for the given date according to local time
Date.prototype.setUTCMinutes=sets the minutes for the given date according to universal time
Date.prototype.setHours=sets the hours for the given date according to local time
Date.prototype.setUTCHours=sets the hours for the given date according to universal time
Date.prototype.setDate=sets the day of the month for the given date according to local time
Date.prototype.setUTCDate=sets the day of the month for the given date according to universal time
Date.prototype.setMonth=sets the month for the given date according to the currently set year
Date.prototype.setUTCMonth=sets the month for the given date according to the universal time
Date.prototype.setFullYear=sets the full year for the given date according to local time
Date.prototype.toUTCString=converts the given date to a string using UTC time zone
Date.prototype.toISOString=returns the string value in ISO 8601 format for the given date according to universal time
Date.prototype.toJSON=returns the string representation of the given date
RegExp.prototype.exec=returns an array object containing the results of match of given string against regular expression, null if no match found
RegExp.prototype.test=returns true if match of given string against regular expression found, else returns false
RegExp.prototype.toString=returns string representation of regular expression
Error.prototype.toString=returns string representation of error object
JSON.parse=returns an object by parsing given string as JSON
JSON.stringify=returns a JSON string corresponding to the given ECMAScript value