JavaScript Date method: setMinutes()
[this page | pdf | back links]
The setMinutes() method (when applied to a
JavaScript
date) sets the
date variable’s minute (and optionally its second and millisecond).
It
has the following syntax with the following parameters:
date.setMinutes(minute,second,millisecond)
|
Parameter
|
Required / Optional
|
Description
|
|
minute
|
Required
|
Integer representing minutes.
Typically, will be in range 0 – 59. However, e.g. -1 will result in last minute
of previous hour, 60 will result in first minute of next hour, etc.
|
|
second
|
Optional
|
Integer representing seconds.
Typically, will be in range 0 – 59. However, e.g. 0 will result in last second
of previous minute, 60 will result in first second of next minute, etc.
|
|
millisecond
|
Optional
|
Integer representing
milliseconds. Typically, will be in range 0 – 999. However, e.g. 0 will
result in last millisecond of previous second, 1000 will result in first
millisecond of next second, etc.
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates