Kernel::System::DataValidation::Validator::DateTimeRelative

NAME

Kernel::System::DataValidation::Validator::DateTimeRelative – Validator that checks if the date time relative 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 => {
            Format => 'day',
            Start  => 'Before',
            Point  => 1,
        },
    );

    my $False = $Validator->Check(
        Value => {
            Format => 'day',
            Point  => 1,
        },
    );
Scroll to Top