UNPKG

ritm-date

Version:

Date & time lightweight formatter

13 lines (12 loc) 420 B
export declare class RDate { private input; private date; private locale; constructor(input?: Date | string | number); format(mask?: string): string | number; setLocale(locale: string): this; calc(value: number, unit: 'day' | 'days' | 'hour' | 'hours' | 'minute' | 'minutes'): this; zeroing(): this; zone(offset: number): this; isValid(_date?: Date | string | number): boolean; }