Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_ClearDateCaches

This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 17

Clear the cache of calculated local time from each Date object.

Syntax

void
JS_ClearDateCaches(JSContext *cx);
Name Type Description
cx JSContext * Pointer to a JavaScript context from which to derive runtime information. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.

Description

JS_ClearDateCaches clears the cache of calculated local time from each Date object. Call to propagate a system timezone change.

See also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,