文件操作 - isMonday.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/date-fns/isMonday.js
编辑文件内容
import { toDate } from "./toDate.js"; /** * The {@link isMonday} function options. */ /** * @name isMonday * @category Weekday Helpers * @summary Is the given date Monday? * * @description * Is the given date Monday? * * @param date - The date to check * @param options - An object with options * * @returns The date is Monday * * @example * // Is 22 September 2014 Monday? * const result = isMonday(new Date(2014, 8, 22)) * //=> true */ export function isMonday(date, options) { return toDate(date, options?.in).getDay() === 1; } // Fallback for modularized imports: export default isMonday;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件