Skip to main content
Module

x/simple_utility/mod.ts>dateEncode

A handy utility collection.
Go to Latest
function dateEncode
import { dateEncode } from "https://deno.land/x/simple_utility@v0.0.3/mod.ts";

Since the unixtime that can be handled by the Date is in milliseconds, this method output downscaled to 1/1000.

Parameters

optional
date: Date

date object for any datetime, if blank output the current datetime.