@solid-primitives/date
Version:
Collection of reactive primitives and utility functions, providing easier ways to deal with dates in SolidJS
20 lines (19 loc) • 503 B
TypeScript
import type { RelativeFormatMessages, Unit } from "./types.js";
/** one second in ms */
export declare const SECOND = 1000,
/** one minute in ms */
MINUTE = 60000,
/** one hour in ms */
HOUR = 3600000,
/** one day in ms */
DAY = 86400000,
/** one week in ms */
WEEK = 604800000,
/** one month in ms */
MONTH = 2592000000,
/** one year in ms */
YEAR = 31536000000;
/** @internal */
export declare const UNITS: Unit[];
/** @internal */
export declare const DEFAULT_MESSAGES: RelativeFormatMessages;