Kernel::System::DataValidation::Validator::DateTime

NAME

Kernel::System::DataValidation::Validator::DateTime – Validator that verifies given date time strings.

PUBLIC INTERFACE

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

Example()

Returns an example of a possible value to be verified.

Check()

Checks if the given value can be transformed to a datetime object. For more information, please refer to Kernel::System::DateTime.

    my $True = $Validator->Check(
        Value => '2018-04-25 14:26:15',
    );

    my $False = $Validator->Check(
        Value => 'Wrong',
    );
Scroll to Top