apps-script-utils 2.1.1 Help

now

function now(): number;

A named function instead of Date.now() scattered through the code, so that measuring time is one thing a test can replace.

Returns

number — the current timestamp in milliseconds.

Examples

Measuring elapsed time

const started = now(); // … work … const elapsed = now() - started; // milliseconds

See also

Source

src/time/now.ts

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.