Filters log events based on the time when they were triggered.

author Nikola Posa

 Methods

__construct()

__construct(int | \DateTime | array | \Traversable $value, string $dateFormatChar, string $operator) : \Zend\Log\Filter\Timestamp

Parameters

$value

int\DateTimearray\Traversable

DateTime instance or desired value based on $dateFormatChar

$dateFormatChar

string

PHP idate()-compliant format character

$operator

string

Comparison operator

Exceptions

\Zend\Log\Exception\InvalidArgumentException

Returns

Returns TRUE if timestamp is accepted, otherwise FALSE is returned.

filter(array $event) : bool

Parameters

$event

array

event data

Returns

bool

 Properties

 

PHP idate()-compliant format character.

$dateFormatChar : string | null

 

$operator

$operator : string

 

DateTime instance or desired value based on $dateFormatChar.

$value : int | \DateTime