Loading js-classes/Date.js +19 −18 Original line number Diff line number Diff line Loading @@ -234,7 +234,7 @@ /** * @method getDate * Returns the numeric value corresponding to the current time. * Returns the day of the month for the specified date according to local time. * * The second statement below assigns the value 25 to the variable `day`, based on the value of the * `Date` object `Xmas95`. Loading @@ -247,7 +247,7 @@ /** * @method getDay * Returns the numeric value corresponding to the current time. * Returns the day of the week for the specified date according to local time. * * The value returned by `getDay` is an integer corresponding to the day of the week: 0 for Sunday, 1 * for Monday, 2 for Tuesday, and so on. Loading @@ -264,7 +264,7 @@ /** * @method getFullYear * Returns the numeric value corresponding to the current time. * Returns the year of the specified date according to local time. * * The value returned by `getFullYear` is an absolute number. For dates between the years 1000 and * 9999, `getFullYear` returns a four-digit number, for example, 1995. Use this function to make sure Loading @@ -282,7 +282,7 @@ /** * @method getHours * Returns the numeric value corresponding to the current time. * Returns the hour for the specified date according to local time. * * The second statement below assigns the value 23 to the variable `hours`, based on the value of the * `Date` object `Xmas95`. Loading @@ -295,7 +295,7 @@ /** * @method getMilliseconds * Returns the numeric value corresponding to the current time. * Returns the milliseconds in the specified date according to local time. * * The following example assigns the milliseconds portion of the current time to the variable ms. * Loading @@ -308,7 +308,7 @@ /** * @method getMinutes * Returns the numeric value corresponding to the current time. * Returns the minutes in the specified date according to local time. * * The second statement below assigns the value 15 to the variable `minutes`, based on the value of * the `Date` object `Xmas95`. Loading @@ -321,7 +321,7 @@ /** * @method getMonth * Returns the numeric value corresponding to the current time. * Returns the month in the specified date according to local time. * * The second statement below assigns the value 11 to the variable `month`, based on the value of the * `Date` object `Xmas95`. Loading @@ -334,7 +334,7 @@ /** * @method getSeconds * Returns the numeric value corresponding to the current time. * Returns the seconds in the specified date according to local time. * * The second statement below assigns the value 30 to the variable `secs`, based on the value of the * `Date` object `Xmas95`. Loading @@ -347,7 +347,8 @@ /** * @method getTime * Returns the numeric value corresponding to the current time. * Returns the numeric value corresponding to the time for the specified date according to * universal time. * * The value returned by the `getTime` method is the number of milliseconds since 1 January 1970 * 00:00:00 UTC. You can use this method to help assign a date and time to another `Date` object. Loading Loading @@ -381,7 +382,7 @@ /** * @method getTimezoneOffset * Returns the numeric value corresponding to the current time. * Returns the time-zone offset from UTC, in minutes, for the current locale. * * The time-zone offset is the difference, in minutes, between UTC and local time. Note that this * means that the offset is positive if the local timezone is behind UTC and negative if it is ahead. Loading @@ -396,7 +397,7 @@ /** * @method getUTCDate * Returns the numeric value corresponding to the current time. * Returns the day (date) of the month in the specified date according to universal time. * * The following example assigns the day portion of the current date to the variable `d`. * Loading @@ -409,7 +410,7 @@ /** * @method getUTCDay * Returns the numeric value corresponding to the current time. * Returns the day of the week in the specified date according to universal time. * * The following example assigns the weekday portion of the current date to the variable `weekday`. * Loading @@ -423,7 +424,7 @@ /** * @method getUTCFullYear * Returns the numeric value corresponding to the current time. * Returns the year in the specified date according to universal time. * * The following example assigns the four-digit value of the current year to the variable `yr`. * Loading @@ -436,7 +437,7 @@ /** * @method getUTCHours * Returns the numeric value corresponding to the current time. * Returns the hours in the specified date according to universal time. * * The following example assigns the hours portion of the current time to the variable `hrs`. * Loading @@ -449,7 +450,7 @@ /** * @method getUTCMilliseconds * Returns the numeric value corresponding to the current time. * Returns the milliseconds in the specified date according to universal time. * * The following example assigns the milliseconds portion of the current time to the variable `ms`. * Loading @@ -462,7 +463,7 @@ /** * @method getUTCMinutes * Returns the numeric value corresponding to the current time. * Returns the minutes in the specified date according to universal time. * * The following example assigns the minutes portion of the current time to the variable `min`. * Loading @@ -475,7 +476,7 @@ /** * @method getUTCMonth * Returns the numeric value corresponding to the current time. * Returns the month of the specified date according to universal time. * * The following example assigns the month portion of the current date to the variable `mon`. * Loading @@ -488,7 +489,7 @@ /** * @method getUTCSeconds * Returns the numeric value corresponding to the current time. * Returns the seconds in the specified date according to universal time. * * The following example assigns the seconds portion of the current time to the variable `sec`. * Loading Loading
js-classes/Date.js +19 −18 Original line number Diff line number Diff line Loading @@ -234,7 +234,7 @@ /** * @method getDate * Returns the numeric value corresponding to the current time. * Returns the day of the month for the specified date according to local time. * * The second statement below assigns the value 25 to the variable `day`, based on the value of the * `Date` object `Xmas95`. Loading @@ -247,7 +247,7 @@ /** * @method getDay * Returns the numeric value corresponding to the current time. * Returns the day of the week for the specified date according to local time. * * The value returned by `getDay` is an integer corresponding to the day of the week: 0 for Sunday, 1 * for Monday, 2 for Tuesday, and so on. Loading @@ -264,7 +264,7 @@ /** * @method getFullYear * Returns the numeric value corresponding to the current time. * Returns the year of the specified date according to local time. * * The value returned by `getFullYear` is an absolute number. For dates between the years 1000 and * 9999, `getFullYear` returns a four-digit number, for example, 1995. Use this function to make sure Loading @@ -282,7 +282,7 @@ /** * @method getHours * Returns the numeric value corresponding to the current time. * Returns the hour for the specified date according to local time. * * The second statement below assigns the value 23 to the variable `hours`, based on the value of the * `Date` object `Xmas95`. Loading @@ -295,7 +295,7 @@ /** * @method getMilliseconds * Returns the numeric value corresponding to the current time. * Returns the milliseconds in the specified date according to local time. * * The following example assigns the milliseconds portion of the current time to the variable ms. * Loading @@ -308,7 +308,7 @@ /** * @method getMinutes * Returns the numeric value corresponding to the current time. * Returns the minutes in the specified date according to local time. * * The second statement below assigns the value 15 to the variable `minutes`, based on the value of * the `Date` object `Xmas95`. Loading @@ -321,7 +321,7 @@ /** * @method getMonth * Returns the numeric value corresponding to the current time. * Returns the month in the specified date according to local time. * * The second statement below assigns the value 11 to the variable `month`, based on the value of the * `Date` object `Xmas95`. Loading @@ -334,7 +334,7 @@ /** * @method getSeconds * Returns the numeric value corresponding to the current time. * Returns the seconds in the specified date according to local time. * * The second statement below assigns the value 30 to the variable `secs`, based on the value of the * `Date` object `Xmas95`. Loading @@ -347,7 +347,8 @@ /** * @method getTime * Returns the numeric value corresponding to the current time. * Returns the numeric value corresponding to the time for the specified date according to * universal time. * * The value returned by the `getTime` method is the number of milliseconds since 1 January 1970 * 00:00:00 UTC. You can use this method to help assign a date and time to another `Date` object. Loading Loading @@ -381,7 +382,7 @@ /** * @method getTimezoneOffset * Returns the numeric value corresponding to the current time. * Returns the time-zone offset from UTC, in minutes, for the current locale. * * The time-zone offset is the difference, in minutes, between UTC and local time. Note that this * means that the offset is positive if the local timezone is behind UTC and negative if it is ahead. Loading @@ -396,7 +397,7 @@ /** * @method getUTCDate * Returns the numeric value corresponding to the current time. * Returns the day (date) of the month in the specified date according to universal time. * * The following example assigns the day portion of the current date to the variable `d`. * Loading @@ -409,7 +410,7 @@ /** * @method getUTCDay * Returns the numeric value corresponding to the current time. * Returns the day of the week in the specified date according to universal time. * * The following example assigns the weekday portion of the current date to the variable `weekday`. * Loading @@ -423,7 +424,7 @@ /** * @method getUTCFullYear * Returns the numeric value corresponding to the current time. * Returns the year in the specified date according to universal time. * * The following example assigns the four-digit value of the current year to the variable `yr`. * Loading @@ -436,7 +437,7 @@ /** * @method getUTCHours * Returns the numeric value corresponding to the current time. * Returns the hours in the specified date according to universal time. * * The following example assigns the hours portion of the current time to the variable `hrs`. * Loading @@ -449,7 +450,7 @@ /** * @method getUTCMilliseconds * Returns the numeric value corresponding to the current time. * Returns the milliseconds in the specified date according to universal time. * * The following example assigns the milliseconds portion of the current time to the variable `ms`. * Loading @@ -462,7 +463,7 @@ /** * @method getUTCMinutes * Returns the numeric value corresponding to the current time. * Returns the minutes in the specified date according to universal time. * * The following example assigns the minutes portion of the current time to the variable `min`. * Loading @@ -475,7 +476,7 @@ /** * @method getUTCMonth * Returns the numeric value corresponding to the current time. * Returns the month of the specified date according to universal time. * * The following example assigns the month portion of the current date to the variable `mon`. * Loading @@ -488,7 +489,7 @@ /** * @method getUTCSeconds * Returns the numeric value corresponding to the current time. * Returns the seconds in the specified date according to universal time. * * The following example assigns the seconds portion of the current time to the variable `sec`. * Loading