MCPcopy Index your code
hub / github.com/node-modules/utility / parseTimestamp

Function parseTimestamp

src/date.ts:194–196  ·  view source on GitHub ↗
(t: number | string)

Source from the content-addressed store, hash-verified

192 * Parse timestamp to Date
193 */
194export function parseTimestamp(t: number | string): Date {
195 return timestamp(t) as Date;
196}
197
198/**
199 * Convert Date object to Unix timestamp in seconds.

Callers

nothing calls this directly

Calls 1

timestampFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…