"use strict";
/**
 * Cron常用表达式模块
 * @date 2022-03
 * @author 何华东
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CronExpression = void 0;
/**
 * Cron表达式
 */
var CronExpression = /** @class */ (function () {
    function CronExpression() {
    }
    /**
     * 每{seconds}秒
     */
    CronExpression.everySecondsOn = function (seconds) {
        return "*/" + seconds + " * * * * ?";
    };
    /**
     * 每{minutes}分钟
     */
    CronExpression.everyMinutesOn = function (minutes) {
        return "0 */" + minutes + " * * * ?";
    };
    /**
     * 每{hours}小时
     */
    CronExpression.everyHoursOn = function (hours) {
        return "0 0 */" + hours + " * * ?";
    };
    /**
     * 每天{clock}点
     */
    CronExpression.everyClockOn = function (clock) {
        return "0 0 " + clock + " * * ?";
    };
    return CronExpression;
}());
exports.CronExpression = CronExpression;
exports.default = CronExpression;
//# sourceMappingURL=CronExpression.js.map