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
-
ICanBoogie\CLDR\LocalizedDateTime
Methods summary
protected
|
|
public
mixed
|
#
__get( string $property )
Support for the |
public
|
|
public
|
|
public
|
|
public
|
Methods inherited from ICanBoogie\CLDR\LocalizedObject
Magic methods summary
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
Properties summary
Properties inherited from ICanBoogie\CLDR\LocalizedObject
Magic properties
public read-only
string
|
$as_full | |
|
public read-only
string
|
$as_long | |
|
public read-only
string
|
$as_medium | |
|
public read-only
string
|
$as_short | |