Class LocalizedDateTime
A localized date time.
<?php namespace ICanBoogie\CLDR; $ldt = new LocalizedDateTime(new \DateTime('2013-11-04 20:21:22 UTC'), $repository->locales['fr']); echo $ldt->as_full; // lundi 4 novembre 2013 20:21:22 UTC # or echo $ldt->format_as_full(); // lundi 4 novembre 2013 20:21:22 UTC echo $ldt->as_long; // 4 novembre 2013 20:21:22 UTC echo $ldt->as_medium; // 4 nov. 2013 20:21:22 echo $ldt->as_short; // 04/11/2013 20:21
- ICanBoogie\CLDR\LocalizedObject uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\CLDR\LocalePropertyTrait
- ICanBoogie\CLDR\LocalizedObjectWithFormatter
- ICanBoogie\CLDR\LocalizedDateTime
Methods summary
protected
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Methods inherited from ICanBoogie\CLDR\LocalizedObject
Methods used from ICanBoogie\CLDR\LocalePropertyTrait
Magic methods summary
public
string
|
|
public
string
|
|
public
string
|
#
format_as_medium( )
format_as_medium() Formats the instance according to the |
public
string
|
#
format_as_short( )
format_as_short() Formats the instance according to the |
Magic methods inherited from ICanBoogie\CLDR\LocalizedObjectWithFormatter
Properties summary
Properties inherited from ICanBoogie\CLDR\LocalizedObject
Magic properties
public read-only
DateTimeInterface
|
$target
The object to localize. |
public read-only
|
$formatter
|
public read-only
string
|
$as_full
|
public read-only
string
|
$as_long
|
public read-only
string
|
$as_medium
|
public read-only
string
|
$as_short
|