@thi.ng/date
Version:
Datetime types, relative dates, math, iterators, composable formatters, locales
15 lines • 384 B
TypeScript
import type { MaybeDate } from "./api.js";
/**
* Coerces `x` to a native JS `Date` instance.
*
* @param x -
*/
export declare const ensureDate: (x: MaybeDate) => Date;
/**
* Coerces `x` to a timestamp.
*
* @param x -
*/
export declare const ensureEpoch: (x: MaybeDate) => number;
export declare const isLeapYear: (year: number) => boolean;
//# sourceMappingURL=checks.d.ts.map