class FullTransformer
Parser and formatter for date formats.
Methods
__construct(string $pattern, string $timezone) Constructor. | ||
Transformer[] | getTransformers() Return the array of Transformer objects. | |
string | format(DateTime $dateTime) Format a DateTime using ICU dateformat pattern. | |
string | formatReplace(string $dateChars, DateTime $dateTime) Return the formatted ICU value for the matched date characters. | |
int | parse(DateTime $dateTime, string $value) Parse a pattern based string to a timestamp value. | |
string | getReverseMatchingRegExp(string $pattern) Retrieve a regular expression to match with a formatted value. | |
bool | isQuoteMatch(string $quoteMatch) Check if the first char of a string is a single quote. | |
string | replaceQuoteMatch(string $quoteMatch) Replaces single quotes at the start or end of a string with two single quotes. |
Details
__construct(string $pattern, string $timezone)
Constructor.
Transformer[] getTransformers()
Return the array of Transformer objects.
string format(DateTime $dateTime)
Format a DateTime using ICU dateformat pattern.
string formatReplace(string $dateChars, DateTime $dateTime)
Return the formatted ICU value for the matched date characters.
int parse(DateTime $dateTime, string $value)
Parse a pattern based string to a timestamp value.
string getReverseMatchingRegExp(string $pattern)
Retrieve a regular expression to match with a formatted value.
bool isQuoteMatch(string $quoteMatch)
Check if the first char of a string is a single quote.
string replaceQuoteMatch(string $quoteMatch)
Replaces single quotes at the start or end of a string with two single quotes.
Please login to continue.