Very Popular
Latest
function default
import { default } from "https://dotland.deno.dev/x/date_fns@v2.22.1/getUnixTime/index.ts";

Examples

// Get the timestamp of 29 February 2012 11:45:05 CET: const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) //=> 1330512305

Parameters

dirtyDate: Date | number
  • the given date

Returns

number

the timestamp