mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
docs/guide-ja/output-formatting.md updated [ci skip]
This commit is contained in:
@ -111,6 +111,11 @@ echo Yii::$app->formatter->asDate('now', 'php:Y-m-d'); // 2014-10-06
|
||||
> long: 2014年10月6日 と 15:58:42 JST
|
||||
> full: 2014年10月6日月曜日 と 15時58分42秒 日本標準時
|
||||
|
||||
バージョン 2.0.7 以降では、さまざまな暦法に従って日付をフォーマットすることが可能です。
|
||||
通常のグレゴリオ暦とは異なる暦法を使用する方法については、フォーマッタの [[yii\i18n\Formatter::$calendar|$calendar]]
|
||||
プロパティの API ドキュメントを参照して下さい。
|
||||
|
||||
|
||||
### タイムゾーン <span id="time-zones"></span>
|
||||
|
||||
日時の値をフォーマットするときに、Yii はその値をターゲット [[yii\i18n\Formatter::timeZone|タイムゾーン]] に変換します。
|
||||
|
Reference in New Issue
Block a user