@rareelements/lydia
Version:
RFC5545 implementation
12 lines • 710 B
TypeScript
import * as rrule from 'rrule';
import { IDTProperty, ITimestampPropery } from '../model/DateTimeTypes';
import { IRawComponent, IRawProperty } from '../model/RawCalendarTypes';
import { IRRuleProp } from '../model/SimpleTypes';
export declare class DateUtils {
static enrichDTProperty(rawProperty: IRawProperty, defaultTZ?: string): IDTProperty;
static entrichTSProperty(rawProperty: IRawProperty, defaultTZ?: string): ITimestampPropery;
static createRuleSet({ properties }: IRawComponent): rrule.RRuleSet | undefined;
static parseDate(value: string, tz?: string): Date;
static getOccurences(rruleProp: IRRuleProp, start: Date, end: Date): Date[];
}
//# sourceMappingURL=DateUtils.d.ts.map