I18Nv2_Locale::setTimeFormat()

I18Nv2_Locale::setTimeFormat()  -- Set time format

Synopsis

require_once 'I18Nv2/Locale.php';

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

Beschreibung

Set a time format to use.

Either a I18Nv2_DATETIME constant or a custom time format.

Parameter

integer $format

a I18Nv2_DATETIME constant

boolean $custom

whether to use a defined custom format

Rückgabewert

Gibt bei Erfolg TRUE zurück, bei einem Fehler ein Objekt der Klasse PEAR_Error.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.