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

x/complaindate/support/intlParts.ts>intlParts

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

Get a function curried with an Intl DateTimeFormat, to extract an object of parts keyed by type from its native JS Date arguments.

Parameters

intlDateTimeFormat: Intl.DateTimeFormat

Returns

(instant: Date) => PartsRecord