Skip to main content
Module

x/complaindate/mod.ts>ComPlainTime

JavaScript date-time utilities that keep timezones on the surface
Latest
interface ComPlainTime
import { type ComPlainTime } from "https://deno.land/x/complaindate@v1.0.1/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.

is: (x: RequireAtLeastOne<{ hour?: number | string; minute?: number | string; second?: number | string; millisecond?: number | string; }>) => boolean

Check for partial or complete equality.

constructor: PlainTimeFactory<this>