JavaScript Reference/Javascript Methods/setMinutes

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"setMinutes()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="var myDate = new Date(); myDate.setMinutes(2); alert(myDate);">SETMINUTES</button> </body> </html>


     </source>
   
  


"setMinutes()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |Date | +----------------+--------------------------------------------------------------+

     </source>
   
  


"setMinutes()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Sets the minutes.

Syntax:

dateName.setMinutes(param1, param2, param3) Parameters:

   param1   Required; the minutes. Value: 0 to 59.
   param2   Optional; the seconds. Value: 0 to 59.
   param3   Optional; the milliseconds elapsed during the current second. 
                      Value: 0 to 999.
   
     
     </source>