IntlDatePatternGenerator
class IntlDatePatternGenerator (View source)
Generates localized date and/or time format pattern strings suitable for use in IntlDateFormatter.
Methods
__construct(string|null $locale = null)
Creates a new IntlDatePatternGenerator instance
static IntlDatePatternGenerator|null
create(string|null $locale = null)
Creates a new IntlDatePatternGenerator instance
string|false
getBestPattern(string $skeleton)
Determines the most suitable date/time format
static string|false
getSkeleton(string $pattern)
Gets the skeleton of the given pattern
static string|false
getBaseSkeleton(string $pattern)
Gets the base skeleton of the given pattern
Details
__construct(string|null $locale = null)
Creates a new IntlDatePatternGenerator instance
static IntlDatePatternGenerator|null
create(string|null $locale = null)
Creates a new IntlDatePatternGenerator instance
string|false
getBestPattern(string $skeleton)
Determines the most suitable date/time format
Determines which date/time format is most suitable for a particular locale.
static string|false
getSkeleton(string $pattern)
Since: 8.6
Gets the skeleton of the given pattern
static string|false
getBaseSkeleton(string $pattern)
Since: 8.6
Gets the base skeleton of the given pattern