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

author Nikola Posa
package Default

 Methods

__construct()

__construct(integer|\DateTime|array|\Traversable $value, string $dateFormatChar = null, string $operator = '<=') : \Zend\Log\Filter\Timestamp

Parameters

$value

integer\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

\Zend\Log\Filter\Timestamp

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

filter(array $event) : boolean
inherited_from \Zend\Log\Filter\FilterInterface::filter()

Parameters

$event

array

event data

Returns

boolean

 Properties

 

PHP idate()-compliant format character.

$dateFormatChar : string | null

Default

 

$operator

$operator : string

Default

 

DateTime instance or desired value based on $dateFormatChar.

$value : integer | \DateTime

Default