Skip to main content
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.1.0/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.