Skip to main content
Module

x/complaindate/mod.ts>createInstant

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

Get a function curried with a timezone, to create native JS Date objects from date-time objects interpreted in the timezone.

Parameters

timezone: string

A named IANA timezone

Returns

(unnamed 0: { year: number | string; month?: number | string; day?: number | string; hour?: number | string; minute?: number | string; second?: number | string; millisecond?: number | string; }) => Date

A curried function that operates on date-time objects