Class DateTimeLocalizer
Localizes DateTime instances.
Namespace: ICanBoogie
Located at DateTimeLocalizer.php
Methods summary
public static
define( callable $localizer
)
: callable
Defines the localizer.
Parameters
Returns
callable
The previous localizer, or null
if none was defined.
public static
defined( void )
: callable|null
Returns the current localizer.
Returns the current localizer.
Returns
callable|null
public static
undefine( void )
public static
localize( ICanBoogie\DateTime
$datetime
, string $locale
= self::DEFAULT_LOCALE )
: callable
Constants summary
DEFAULT_LOCALE
: string
'en'