// SPDX-License-Identifier: Apache-2.0
import InvalidTimestampRange from "./error/InvalidTimestampRange";
export const ONE_THOUSAND = 1000;
export class SecurityDate {
    static checkDateTimestamp(value, minTimeStamp, maxTimeStamp) {
        const errorList = [];
        const minDate = minTimeStamp ? minTimeStamp : 0;
        const maxDate = maxTimeStamp ? maxTimeStamp : 0;
        if (value < minDate || (maxTimeStamp && value > maxDate)) {
            errorList.push(new InvalidTimestampRange(new Date(value), new Date(minDate), new Date(maxDate)));
        }
        return errorList;
    }
}
