Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/complaindate/mod.ts>ComPlainTime

JavaScript date-time utilities that keeps timezones on the surface
Go to Latest
interface ComPlainTime
import { type ComPlainTime } from "https://deno.land/x/complaindate@v0.7.2/mod.ts";

Describes a basic time-of-day object with minimal properties.

Properties

hour: number

Hour (1-23)

minute: number

Minute (0-59)

second: number

Second (0-59)

millisecond: number

Millisecond (0-999)

iso: string

Thh:mm:ss.sss (ISO 8601)

valueOf: () => number

Tallied milliseconds since 00:00

toString: () => string

hh:mm / hh:mm:ss / hh:mm:ss.sss

toJSON: () => ReturnType<this["toString"]>

hh:mm / hh:mm:ss / hh:mm:ss.sss

toLocaleString: (locale?: Intl.LocalesArgument, options?: FormatPlainTimeOptions) => string

Localize the time for display to a user.

constructor: PlainTimeFactory<this>