文件操作 - isWithinInterval.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/date-fns/isWithinInterval.d.ts
编辑文件内容
import type { ContextOptions, DateArg, Interval } from "./types.js"; /** * The {@link isWithinInterval} function options. */ export interface IsWithinIntervalOptions extends ContextOptions<Date> {} /** * @name isWithinInterval * @category Interval Helpers * @summary Is the given date within the interval? * * @description * Is the given date within the interval? (Including start and end.) * * @param date - The date to check * @param interval - The interval to check * @param options - An object with options * * @returns The date is within the interval * * @example * // For the date within the interval: * isWithinInterval(new Date(2014, 0, 3), { * start: new Date(2014, 0, 1), * end: new Date(2014, 0, 7) * }) * // => true * * @example * // For the date outside of the interval: * isWithinInterval(new Date(2014, 0, 10), { * start: new Date(2014, 0, 1), * end: new Date(2014, 0, 7) * }) * // => false * * @example * // For date equal to the interval start: * isWithinInterval(date, { start, end: date }) * // => true * * @example * // For date equal to the interval end: * isWithinInterval(date, { start: date, end }) * // => true */ export declare function isWithinInterval( date: DateArg<Date> & {}, interval: Interval, options?: IsWithinIntervalOptions | undefined, ): boolean;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件