UNB Components Code Reference

UnbLocale::RelativeTime method

Formats a relative time description.

public static function UnbLocale::RelativeTime ($time, $context = UnbTimeContext::Point, $html = false);

Parameters

time

(string) Time specification
(int) UNIX timestamp

context  –  optional, default: UnbTimeContext::Point

(UnbTimeContext) Grammatical context

html  –  optional, default: false

(bool) Prepare for HTML output

Return value

(string) Formatted time

Member of class: UnbLocale

Implementation file: locale.class.php, line 629

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