Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/simple_utility/src/date.ts>dateEncode

A handy utility collection.
Go to Latest
function dateEncode
import { dateEncode } from "https://deno.land/x/simple_utility@v0.0.3/src/date.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.