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
Methods inherited from ICanBoogie\CLDR\LocalizedObject
__construct()
,
from()
,
get_target()
Methods used from ICanBoogie\CLDR\LocalePropertyTrait
Magic methods summary
public
format_as_full( void )
: string
format_as_full() Formats the instance according to the full
datetime pattern.
public
format_as_long( void )
: string
format_as_long() Formats the instance according to the long
datetime pattern.