MCPcopy Create free account
hub / github.com/code-pushup/cli / dateToUnixTimestamp

Function dateToUnixTimestamp

packages/utils/src/lib/dates.ts:1–3  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

1export function dateToUnixTimestamp(date: Date): number {
2 return Math.round(date.getTime() / 1000);
3}

Callers 2

#createGroupMarkersMethod · 0.85
dates.unit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected