PHP 클래스 Symfony\Component\Form\ValueTransformer\DateTimeToLocalizedStringTransformer
Options:
* "input": The type of the normalized format ("time" or "timestamp"). Default: "datetime"
* "output": The type of the transformed format ("string" or "array"). Default: "string"
* "format": The format of the time string ("short", "medium", "long" or "full"). Default: "short"
* "locale": The locale of the localized string. Default: Result of Locale::getDefault()
파일 보기
프로젝트 열기: pmjones/php-framework-benchmarks
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
reverseTransform ( string | array $value, $originalValue ) : DateTime |
Transforms a localized date string/array into a normalized date. |
|
transform ( DateTime $dateTime ) : string | array |
Transforms a normalized date into a localized date string/array. |
|
보호된 메소드들
메소드 상세