Packages » Package i18n » Class I18NLocale » Method formatTime

Method I18NLocale::formatTime

Declaration:
<? abstract public string formatTime(int $dtint $format 1?>

Declared in:
I18NLocale

Description:
This function formats time of the given UNIX timestamp using either short, long or full format

Parameters:
  • int $dt
    the UNIX timestamp to format. It will be converted to the current time zone of the locale
  • int $format
    either the I18N::SHORT, I18N::LONG or I18N::FULL

Returns:
string the formatted time