"use strict";
/**
 * Matcher for time and day
 * @module
 */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const time_utils_1 = __importDefault(require("../time_utils"));
exports.default = {
    fieldsNeeded: ['currentTimestamp', 'timezone'],
    match(value, cond) {
        const timeParts = time_utils_1.default.getTimeParts(value.currentTimestamp, value.timezone);
        return time_utils_1.default.testInterval(cond.value, timeParts);
    },
};
