Easy Tutorial
❮ Eff Fadetoggle Jq Event Target ❯

jQuery.now() Method

jQuery Miscellaneous Methods

Example

Returns the Unix timestamp of the current time.

$(function () { 
    document.body.innerHTML = $.now();
})

Definition and Usage

The $.now() function returns the number of milliseconds that have elapsed since midnight of January 1, 1970.

Note: This method does not accept any parameters. This function is similar to new Date().getTime().


Syntax

jQuery Miscellaneous Methods

❮ Eff Fadetoggle Jq Event Target ❯