Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/simple_utility/src/pure/time.ts

Simplify processing for Deno.
Latest
import * as simpleUtility from "https://deno.land/x/simple_utility@v2.3.2/src/pure/time.ts";

Functions

Wait for specified time. Return actual elapsed wait time.

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

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

Serialize from Date or UNIXTIME or formatted datetime string to "yyyyMMddhhmmss". If no args will be current time.