MediaWiki  master
Go to the documentation of this file.
1 <?php
3 namespace MediaWiki\Hook;
5 use DateInterval;
6 use Language;
7 use MWTimestamp;
8 use User;
32  public function onGetRelativeTimestamp( &$output, &$diff, $timestamp,
33  $relativeTo, $user, $lang
34  );
35 }
Base class for language-specific code.
Definition: Language.php:54
Library for creating and parsing MW-style timestamps.
Definition: MWTimestamp.php:39
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:70
This is a hook handler interface, see docs/
onGetRelativeTimestamp(&$output, &$diff, $timestamp, $relativeTo, $user, $lang)
Use this hook to pre-emptively override the relative timestamp generated by MWTimestamp::getRelativeT...
if(!isset( $args[0])) $lang