Skip to content

PluginClock

Provides the current time. The clock belongs to the app and not to the platform, so that a test can set the time and obtain the same result each time it runs. No permission is needed.

now(): number;

Returns the current time, in milliseconds. A plugin uses this method instead of Date.now().

number