UNPKG

@valo/cache

Version:
12 lines (11 loc) 500 B
import { DateInterval } from "../enums"; export declare class DateHelper { /** * Adds a value to a date * * @param date The date to which we will add units, done in local time * @param interval The name of the interval to add, one of: ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second'] * @param units The amount to add to date of the given interval */ static dateAdd(date: string, interval: DateInterval, units: number): Date | undefined; }