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

x/hex/src/lib/stdx/fmt/mod.ts>duration.PrettyDurationOptions

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface duration.PrettyDurationOptions
import { type duration } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/fmt/mod.ts";
const { PrettyDurationOptions } = duration;

Properties

style: "narrow" | "digital" | "full"

"narrow" for "0d 0h 0m 0s 0ms..." "digital" for "00:00:00:00:000..." "full" for "0 days, 0 hours, 0 minutes,..."

ignoreZero: boolean

Whether to ignore zero values. With style="narrow" | "full", all zero values are ignored. With style="digital", only values in the ends are ignored.