- PHP 手册
- 函数参考
- 国际化与字符编码支持
- intl
The IntlDatePatternGenerator class
(PHP 8 >= 8.1.0)
简介
Generates localized date and/or time format pattern strings suitable for use in IntlDateFormatter.
类摘要
class IntlDatePatternGenerator { /* 方法 */ public __construct(string$locale
= null
)
public static create(string $locale
= null
): ?IntlDatePatternGenerator
public getBestPattern(string $skeleton
): string|false
}
目录
- IntlDatePatternGenerator::create — Creates a new IntlDatePatternGenerator instance
- IntlDatePatternGenerator::getBestPattern — Determines the most suitable date/time format
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/class.intldatepatterngenerator.php