Skip to main content
Module

x/complaindate/mod.ts>PlainDateFactory

JavaScript date-time utilities that keep timezones on the surface
Latest
interface PlainDateFactory
import { type PlainDateFactory } from "https://deno.land/x/complaindate@v1.0.1/mod.ts";

Describes a factory function that creates plain-date objects.

Specific implementations of the factory may provide additional methods that takes other kinds of arguments.

Call Signatures

(x: { year: number | string; month?: number | string; day?: number | string; }): T

Properties

optional
fromString: <T extends ComPlainDate>(this: PlainDateFactory<T>, s: string) => T
optional
fromUtcInstant: <T extends ComPlainDate>(this: PlainDateFactory<T>, instant?: Date) => T
optional
fromLocalInstant: <T extends ComPlainDate>(this: PlainDateFactory<T>, instant?: Date) => T
optional
fromInstant: <T extends ComPlainDate>(
timezone: string,
instant?: Date,
) => T