Metodo getMinutes
Il metodo getMinutes viene applicato a un
oggetto con data
e restituisce il valore corrente
dei minuti (numero da 0 a 59).
Sintassi
data.getMinutes();
Esempio
Visualizziamo il numero corrente di minuti:
let data = new Date();
let res = data.getMinutes();
console.log(res);
Vedi anche
-
metodo
getHours,
che ottiene le ore -
metodo
getSeconds,
che ottiene i secondi -
metodo
getMilliseconds,
che ottiene i millisecondi