## Class LoggerPatternConverterDate

Description

Returns the date/time of the logging request.

Option: the datetime format, as used by the date() function. If the option is not given, the default format 'c' will be used.

There are several "special" values which can be given for this option: 'ISO8601', 'ABSOLUTE' and 'DATE'.

- version: $Revision: 1326626 $
- since: 2.3

Located in /log4php/pattern/LoggerPatternConverterDate.php (line 35)

    LoggerPatternConverter
       |
       --LoggerPatternConverterDate

Class Constant Summary
DATE_FORMAT_ABSOLUTE = 'H:i:s'
DATE_FORMAT_DATE = 'd M Y H:i:s.u'
DATE_FORMAT_ISO8601 = 'c'
Method Summary
void activateOptions ()
void convert (LoggerLoggingEvent $event)
Variables

#### Inherited Variables

Inherited from LoggerPatternConverter

> LoggerPatternConverter::$formattingInfo
> LoggerPatternConverter::$next
> LoggerPatternConverter::$option

Methods
activateOptions (line 53)

- access: public

void activateOptions ()

Redefinition of:

LoggerPatternConverter::activateOptions()
  Called in constructor. Converters which need to process the options can override this method.

convert (line 70)

- access: public

void convert (LoggerLoggingEvent $event)

- LoggerLoggingEvent $event

Redefinition of:

LoggerPatternConverter::convert()
  Converts the logging event to the desired format. Derived pattern converters must implement this method.

#### Inherited Methods

Inherited From LoggerPatternConverter

> LoggerPatternConverter::__construct()
> LoggerPatternConverter::activateOptions()
> LoggerPatternConverter::convert()
> LoggerPatternConverter::format()

Class Constants
DATE_FORMAT_ABSOLUTE = 'H:i:s' (line 39)
DATE_FORMAT_DATE = 'd M Y H:i:s.u' (line 41)
DATE_FORMAT_ISO8601 = 'c' (line 37)

Documentation generated on Wed, 12 Nov 2025 18:40:35 +0900 by phpDocumentor 1.4.4