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

std/datetime/mod.ts>Unit

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias Unit
import { type Unit } from "https://deno.land/std@0.105.0/datetime/mod.ts";
definition:
| "milliseconds"
| "seconds"
| "minutes"
| "hours"
| "days"
| "weeks"
| "months"
| "quarters"
| "years"