MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / dateTimestampInSeconds

Function dateTimestampInSeconds

packages/core/src/utils/time.ts:24–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 * Returns a timestamp in seconds since the UNIX epoch using the Date API.
23 */
24export function dateTimestampInSeconds(): number {
25 return safeDateNow() / ONE_SECOND_IN_MS;
26}
27
28/**
29 * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not

Callers 6

addBreadcrumbFunction · 0.90
addBreadcrumbMethod · 0.90
prepareEventFunction · 0.90
_createRouteSpanFunction · 0.85
isRedirectFunction · 0.85

Calls 1

safeDateNowFunction · 0.90

Tested by

no test coverage detected