Skip to main content
Module

x/simple_utility/mod.pure.full.ts>timeDecode

Simplify processing for Deno.
Latest
function timeDecode
import { timeDecode } from "https://deno.land/x/simple_utility@v2.1.0/mod.pure.full.ts";

Convert from UNIXTIME or formatted datetime string to Date. If no args will be current time. Note that in seconds not milliseconds.

Examples

Example 1

const time = timeEncode();
const date = timeDecode(time);

Parameters

optional
dt: number | string