UNPKG

express-post-task-scheduler

Version:

A lightweight npm package to create and manage scheduled tasks using Express middleware. Configure tasks via POST requests and execute them at specified times seamlessly.

8 lines (7 loc) 421 B
import { ITimeConvertorReturnType } from "../@types"; /** * To validate and convert a date string into various formats * @param executeTime for example: "2024-12-30 17:00:00" * @param compareCurrentTime If it's true, if the executeTime before current time will make returned field isValid as false */ export declare function timeConvertor(executeTime: string, compareCurrentTime?: boolean): ITimeConvertorReturnType;