@ncodedcode/ncode_react_lib
Version:
ncode react application context library
26 lines (25 loc) • 743 B
TypeScript
export declare const NCDatingClassName = "NCDating";
export interface NCDating {
now(): NCDating;
create(m: number): NCDating;
fromDate(d: Date): NCDating;
parse(date: string): NCDating;
addDayTo(day: number): NCDating;
diff(date: Date, unit?: string, float?: boolean): number;
year(): number;
month(): number;
day(): number;
hour(): number;
minute(): number;
second(): number;
dayOfWeek(): number;
isPast(): boolean;
isFuture(): boolean;
compare(target: NCDating): number;
isoFormat(): string;
format(f: string): string;
millis(): number;
toDate(): Date;
currentTimezone(): string;
duration(millisecond: number, format: string, unit?: string): string;
}