Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
20 lines
964 B
Plaintext
20 lines
964 B
Plaintext
/**
|
|
* Returns a timestamp in seconds since the UNIX epoch using the Date API.
|
|
*/
|
|
export declare function dateTimestampInSeconds(): number;
|
|
/**
|
|
* Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the
|
|
* availability of the Performance API.
|
|
*
|
|
* BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is
|
|
* asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The
|
|
* skew can grow to arbitrary amounts like days, weeks or months.
|
|
* See https://github.com/getsentry/sentry-javascript/issues/2590.
|
|
*/
|
|
export declare function timestampInSeconds(): number;
|
|
/**
|
|
* The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the
|
|
* performance API is available.
|
|
*/
|
|
export declare function browserPerformanceTimeOrigin(): number | undefined;
|
|
//# sourceMappingURL=time.d.ts.map |