The 4-dimensional orbit of the Earth around the Sun is a helix with pitch 63,000 times bigger than the radius.
justfigures

a resource for web developers...

       

Search Amazon

JavaScript: Date object reference


Lists the Date object methods and constructors.


Back to JavaScript: Dates


Date object methods:


getDate()

getUTCDate()

setDate()

setUTCDate()

Returns or sets the day of the month as a number.

UTC is Universal Coordinated Time.

getDay()

getUTCDay()

Returns the day of the week where 0 is Sunday and 6 is Saturday.

getHours()

getUTCHours()

setHours()

setUTCHours()

Returns or sets the hour.

getMilliseconds()

getUTCMilliseconds()

setMilliseconds()

setUTCMilliseconds()

Returns or sets the milliseconds.

getMinutes()

getUTCMinutes()

setMinutes()

setUTCMinutes()

Returns or sets the minutes.

getMonth()

getUTCMonth()

setMonth()

setUTCMonth()

Returns or sets the month as a number where 0 is January and 11 is December.

getSeconds()

getUTCSeconds()

setSeconds()

setUTCSeconds()

Returns or sets the seconds.

getTime()

setTime()

Returns or sets the time in milliseconds since midnight Jan 1, 1970.

getTimezoneOffset()

Returns the difference in minutes between local time and GMT (Greenwich Mean Time).

getYear()

setYear()

Returns or sets the year (two digit).

getFullYear()

getUTCFullYear()

setFullYear()

setUTCFullYear()

Returns or sets the year (four digit).



Date object constructors:


Date()

Creates a Date with the current date and time.

Date(year, month, day, hours, minutes, seconds, milliseconds)

Creates a Date with the arguments specified as numbers. The year and month arguments are required. If other arguments are included then all previous must be.


Rate this page:








Back to top.

 

Bookmark and Share

 

Copyright © 2006-2012 justfigures.co.uk