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

Function dateToUnixTimestamp

src/date.ts:201–203  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

199 * Convert Date object to Unix timestamp in seconds.
200 */
201export function dateToUnixTimestamp(date: Date): number {
202 return Math.round(date.getTime() / 1000);
203}
204
205export enum DateFormat {
206 DateTimeWithTimeZone = 'DateTimeWithTimeZone',

Callers 1

getDateFromMillisecondsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…