I18Nv2_Locale::setDateFormat()

I18Nv2_Locale::setDateFormat()  -- Set date format

Synopsis

require_once 'I18Nv2/Locale.php';

mixed I18Nv2_Locale::setDateFormat (int $format [, bool $custom = FALSE])

Opis

Set the date format to use.

Either a I18Nv2_DATETIME constant or a custom date format.

Parametr

integer $format

a I18Nv2_DATETIME constant

boolean $custom

whether to use a defined custom format

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Uwagi

Ta funkcja nie może być wywołana statycznie.