kawkab-frontend
Version:
Kawkab frontend is a frontend library for the Kawkab framework
13 lines (12 loc) • 411 B
TypeScript
import dayjs from 'dayjs';
import 'dayjs/locale/ar';
export declare class Time {
private date;
constructor(dateInput?: string | number | Date | dayjs.Dayjs);
static now(): Time;
format(formatStr?: string): string;
fromNow(locale?: string): string;
add(value: number, unit: dayjs.ManipulateType): Time;
subtract(value: number, unit: dayjs.ManipulateType): Time;
toDate(): Date;
}