datezone
Version:
A lightweight and comprehensive date and timeZone utility library for JavaScript.
23 lines • 785 B
TypeScript
import { type TimeZone } from "./timezone.pub.js";
/**
* To isostring.
*
* @param ts - The timestamp to format
* @param timeZone - Optional timeZone. If not provided, uses the system's local timeZone.
* @returns The ISO formatted date string
* @see https://datezone.dev/docs/reference/iso#toisostring
*/
export declare function toISOString(ts: number, timeZone: TimeZone | null): string;
/**
* @deprecated Use {@link fromISOString} instead.
*/
export declare function parseISO(isoString: string): number;
/**
* Parse ISO string.
*
* @param isoString - The ISO string to parse.
* @returns The timestamp.
* @see https://datezone.dev/docs/reference/iso#fromisostring
*/
export declare function fromISOString(isoString: string): number;
//# sourceMappingURL=iso.pub.d.ts.map