|
|
@ -55,23 +55,26 @@ declare module 'ical.js' {
|
|
|
|
toJSON(): any;
|
|
|
|
toJSON(): any;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TimeJsonData = {
|
|
|
|
|
|
|
|
year?: number,
|
|
|
|
|
|
|
|
month?: number,
|
|
|
|
|
|
|
|
day?: number,
|
|
|
|
|
|
|
|
hour?: number,
|
|
|
|
|
|
|
|
minute?: number,
|
|
|
|
|
|
|
|
second?: number,
|
|
|
|
|
|
|
|
isDate?: boolean
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class Time {
|
|
|
|
class Time {
|
|
|
|
isDate: boolean;
|
|
|
|
isDate: boolean;
|
|
|
|
|
|
|
|
|
|
|
|
static fromString(str: string): Time;
|
|
|
|
static fromString(str: string): Time;
|
|
|
|
static fromJSDate(aDate: Date | null, useUTC: boolean): Time;
|
|
|
|
static fromJSDate(aDate: Date | null, useUTC: boolean): Time;
|
|
|
|
|
|
|
|
static fromData(aData: TimeJsonData): Time;
|
|
|
|
|
|
|
|
|
|
|
|
static now(): Time;
|
|
|
|
static now(): Time;
|
|
|
|
|
|
|
|
|
|
|
|
constructor(data?: {
|
|
|
|
constructor(data?: TimeJsonData);
|
|
|
|
year?: number,
|
|
|
|
|
|
|
|
month?: number,
|
|
|
|
|
|
|
|
day?: number,
|
|
|
|
|
|
|
|
hour?: number,
|
|
|
|
|
|
|
|
minute?: number,
|
|
|
|
|
|
|
|
second?: number,
|
|
|
|
|
|
|
|
isDate?: boolean
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compare(aOther: Time): number;
|
|
|
|
compare(aOther: Time): number;
|
|
|
|
|
|
|
|
|
|
|
@ -81,5 +84,6 @@ declare module 'ical.js' {
|
|
|
|
aExtraDays: number, aExtraHours: number, aExtraMinutes: number, aExtraSeconds: number, aTimeopt?: Time): void;
|
|
|
|
aExtraDays: number, aExtraHours: number, aExtraMinutes: number, aExtraSeconds: number, aTimeopt?: Time): void;
|
|
|
|
|
|
|
|
|
|
|
|
toJSDate(): Date;
|
|
|
|
toJSDate(): Date;
|
|
|
|
|
|
|
|
toJSON(): TimeJsonData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|