javascript getMinutes() method


  Translation results:

get

英[get] 美[ɡɛt]

vt. Get; catch; persuade; receive (punishment, etc.)

vt.& vi. Arrive, come

vi. Become; start; try to deal with; obtain benefits or wealth

n. Reproduce, cub; profit

Third person singular : gets present participle: getting past tense: got past participle: got gotten

minutes

## English['mɪnɪts] US['mɪnɪts]

n. Minute; [Law] memo, meeting record, trial record; minute (plural noun of minute); instant; moment

javascript getMinutes() methodsyntax

Function: Returns the minute field of the time.

Syntax: dateObject.getMinutes()

Returns: The minute field of dateObject, displayed in local time. The return value is an integer between 0 and 59.

Note: The value returned by getMinutes() is a two-digit number. However, the return value is not always two digits, if the value is less than 10, only one digit is returned. This method is always used in conjunction with a Date object.

javascript getMinutes() methodexample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">

    var d = new Date()
    document.write(d.getMinutes())

</script>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A