Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/complaindate/support/intlParts.ts>intlParts

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