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

x/complaindate/mod.ts>createInstant

JavaScript date-time utilities that keeps timezones on the surface
Go to Latest
function createInstant
import { createInstant } from "https://deno.land/x/complaindate@v0.7.2/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