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

time

##英[taɪm] 美[taɪm]

n. Time; time; era; moment

vt. Arrange time for...; measure the time of...; adjust the speed of (mechanical); set the speed of (clock, watch)

vi. in tune; harmonious; timely ) game time limit, pause

Third person singular: times Plural: times Present participle: timing Past tense: timed

javascript getTime() method syntax

Function:Returns the number of milliseconds since January 1, 1970.

Syntax: dateObject.getTime()

Returns: dateObject The specified date and time are from midnight on January 1, 1970 (GMT time ) the number of milliseconds between.

Note: This method is always used in conjunction with a Date object.

javascript getTime() method example

<!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.getTime() + " milliseconds since 1970/01/01")

</script>

</body>
</html>

Run instance »

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