TokenRule
in
Defines the formatting behavior of a date-pattern token.
Tags
Table of Contents
Methods
- format() : string
- Formats the token for a date.
Methods
format()
Formats the token for a date.
public
format(CalendarDate $date, Locale $locale) : string
Parameters
- $date : CalendarDate
-
Date providing the token value.
- $locale : Locale
-
Locale definition.
Tags
Return values
string —Formatted token value.