Skip to Content
Menu

localTimestamp()

Create a timestamp in the user’s local timezone.

JavaScript February 22, 2017

Usage

JavaScript
localTimestamp()

Parameters

This function does not accept any parameters. Is this incorrect?

Additional Notes

If Google Analytics is blocked by the user, this function will only return false.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    This function was not found in /inc/analytics.php. Please report this error.

    No Hooks

    This function does not have any filters or actions available. Request one?

    Override

    To override or disable this JavaScript function, simply redeclare it with the exact same function name. Remember: Some functionality is conditionally loaded via dynamic imports, so if your function is not overriding properly, try listening for a DOM event (described below).

    JavaScript
    function localTimestamp(){
        //Write your own code here, leave it blank, or return false.
    }