UNB Components Code Reference

UnbUi::RelativeTime method

Prints a relative time description with an absolute time as tooltip.

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

Parameters

time

(string) Time specification
(int) UNIX timestamp

context  –  optional, default: UnbTimeContext::Point

(UnbTimeContext) Specifies the context in which the time will be used, used for the correct grammatical formulation

ret  –  optional, default: false

(bool) Specifies whether the HTML code shall be returned instead of printed

Remarks

The second parameter may be left out if ret is meant to be set true.

Member of class: UnbUi

Implementation file: ui.class.php, line 444

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