yii\helpers\FormatConverter - Yii2 类参考手册
Class yii\helpers\FormatConverter
| Inheritance | yii\helpers\FormatConverter » yii\helpers\BaseFormatConverter |
|---|---|
| Available since version | 2.0 |
FormatConverter provides functionality to convert between different formatting pattern formats.
It provides functions to convert date format patterns between different conventions.
Public Properties
隐藏继承的属性 Hide inherited properties
| 属性Property | 类型 Type | 简介 Description | 定义在 Defined By |
|---|---|---|---|
| $juiFallbackDatePatterns | array | The jQuery UI fallback definition to use for the ICU short patterns short, medium, long and full. |
yii\helpers\BaseFormatConverter |
| $phpFallbackDatePatterns | array | The php fallback definition to use for the ICU short patterns short, medium, long and full. |
yii\helpers\BaseFormatConverter |
Public Methods
隐藏继承的方法 Hide inherited methods
| 方法 Method | 简介 Description | 定义在 Defined By |
|---|---|---|
| convertDateIcuToJui() | Converts a date format pattern from [ICU format][] to [jQuery UI date format][]. | yii\helpers\BaseFormatConverter |
| convertDateIcuToPhp() | Converts a date format pattern from [ICU format][] to [php date() function format][]. | yii\helpers\BaseFormatConverter |
| convertDatePhpToIcu() | Converts a date format pattern from [php date() function format][] to [ICU format][]. | yii\helpers\BaseFormatConverter |
| convertDatePhpToJui() | Converts a date format pattern from [php date() function format][] to [jQuery UI date format][]. | yii\helpers\BaseFormatConverter |