3 final class PhabricatorUserSinceField
4 extends PhabricatorUserCustomField
{
8 public function getFieldKey() {
12 public function getFieldName() {
13 return pht('User Since');
16 public function getFieldDescription() {
17 return pht('Shows user join date.');
20 public function shouldAppearInPropertyView() {
24 public function renderPropertyViewValue(array $handles) {
25 $absolute = phabricator_datetime(
26 $this->getObject()->getDateCreated(),
29 $relative = phutil_format_relative_time_detailed(
30 time() - $this->getObject()->getDateCreated(),
33 return hsprintf('%s (%s)', $absolute, $relative);