UNB Components Code Reference

UnbLocale::Time method

Formats an absolute time description.

public static function UnbLocale::Time ($time, $details = UnbTimeFormat::DateTime, $html = false);

Parameters

time

(string) Time specification
(int) UNIX timestamp

details  –  optional, default: UnbTimeFormat::DateTime

(UnbTimeFormat) Details of the time specification to include in the output

html  –  optional, default: false

(bool) Prepare for HTML output

Return value

(string) Formatted time

Member of class: UnbLocale

Implementation file: locale.class.php, line 580

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.