Server IP : 85.214.239.14 / Your IP : 3.129.253.49 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/usr/lib/node_modules/pm2/node_modules/@pm2/agent/node_modules/dayjs/ |
Upload File : |
/// <reference path="./locale/index.d.ts" /> export = dayjs; declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs declare namespace dayjs { export type ConfigType = string | number | Date | Dayjs export type OptionType = { locale?: string, format?: string, utc?: boolean } | string | string[] type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms' export type UnitType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date' | UnitTypeShort; export type OpUnitType = UnitType | "week" | 'w'; export type QUnitType = UnitType | "quarter" | 'Q'; class Dayjs { constructor (config?: ConfigType) clone(): Dayjs isValid(): boolean year(): number year(value: number): Dayjs month(): number month(value: number): Dayjs date(): number date(value: number): Dayjs day(): number day(value: number): Dayjs hour(): number hour(value: number): Dayjs minute(): number minute(value: number): Dayjs second(): number second(value: number): Dayjs millisecond(): number millisecond(value: number): Dayjs set(unit: UnitType, value: number): Dayjs get(unit: UnitType): number add(value: number, unit: OpUnitType): Dayjs subtract(value: number, unit: OpUnitType): Dayjs startOf(unit: OpUnitType): Dayjs endOf(unit: OpUnitType): Dayjs format(template?: string): string diff(date: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number valueOf(): number unix(): number daysInMonth(): number toDate(): Date toJSON(): string toISOString(): string toString(): string utcOffset(): number isBefore(date: ConfigType, unit?: OpUnitType): boolean isSame(date: ConfigType, unit?: OpUnitType): boolean isAfter(date: ConfigType, unit?: OpUnitType): boolean locale(): string locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs } export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string export function isDayjs(d: any): d is Dayjs export function unix(t: number): Dayjs const Ls : { [key: string] : ILocale } }