Kernel::System::DataValidation::Validator::DateTimeScale

NAME

Kernel::System::DataValidation::Validator::DateTimeScale – Validator that checks if the date time scale value is correct.

PUBLIC INTERFACE

Provides a Check method, that will be called by the Kernel::System::DataValidation backend.

Check()

Checks if the given value is a valid cron string.

    my $True = $Validator->Check(
        Value => {
            Count => 1,
            Unit => 'Day',
        },
    );

    my $False = $Validator->Check(
        Value => {
            Count => 1,
        },
    );
Scroll to Top