Civil Date PHP Package

ParsableTokenRule extends TokenRule

Defines parsing behavior for a date-pattern token.

Tags
see
ParseCapture
TokenElement::regex()

Table of Contents

Methods

captureRegex()  : string
Returns the regular-expression fragment for capturing this token.
format()  : string
Formats the token for a date.
parse()  : int
Parses a captured value.
property()  : string
Returns the semantic calendar-date property represented by this rule.

Methods

captureRegex()

Returns the regular-expression fragment for capturing this token.

public captureRegex() : string
Return values
string

Capturing regular-expression fragment.

property()

Returns the semantic calendar-date property represented by this rule.

public property() : string
Return values
string

Calendar-date property name.

On this page

Search results