UNPKG

datezone

Version:

A lightweight and comprehensive date and timeZone utility library for JavaScript.

17 lines 638 B
import { type TimeZone } from "./timezone.pub.js"; type FormatOptions = { locale?: string; timeZone: TimeZone | null; }; /** * Extracts the format from a timestamp. * * @param ts - The Timestamp to format * @param formatString - The string of tokens * @param options - An object with options. `locale` is required. `timeZone` is optional and defaults to the system's local timeZone. * @returns The formatted date string * @see https://datezone.dev/docs/reference/index#format */ export declare function format(ts: number, format: string, options: FormatOptions): string; export {}; //# sourceMappingURL=format.pub.d.ts.map