date-manip
Version:
A lightweight JavaScript date utility library that provides modularity, high performance, and additional features. It supports various date operations, including date addition and subtraction, formatting, comparison, etc.
11 lines (10 loc) • 467 B
TypeScript
/** Milliseconds in a second (每秒的毫秒数) */
export declare const MS_IN_SECOND = 1000;
/** Milliseconds in a minute (每分钟的毫秒数) */
export declare const MS_IN_MINUTE = 60000;
/** Milliseconds in an hour (每小时的毫秒数) */
export declare const MS_IN_HOUR = 3600000;
/** Milliseconds in a day (每天的毫秒数) */
export declare const MS_IN_DAY = 86400000;
/** range of units (单位范围) */
export declare const rangeOfUnits: string[];