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

x/simple_utility/mod.ts>utDecode

Useful snippet collection.
Go to Latest
function utDecode
import { utDecode } from "https://deno.land/x/simple_utility@v1.6.0/mod.ts";

Returns Date from UNIX time. Note that in seconds not milliseconds.

Examples

Example 1

const time = utEncode();
const date = utDecode(time);

Parameters

time: number