MediaWiki master
GetRelativeTimestampHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
5use DateInterval;
6use Language;
9
32 public function onGetRelativeTimestamp( &$output, &$diff, $timestamp,
33 $relativeTo, $user, $lang
34 );
35}
Base class for language-specific code.
Definition Language.php:63
internal since 1.36
Definition User.php:93
Library for creating and parsing MW-style timestamps.
This is a hook handler interface, see docs/Hooks.md.
onGetRelativeTimestamp(&$output, &$diff, $timestamp, $relativeTo, $user, $lang)
Use this hook to pre-emptively override the relative timestamp generated by MWTimestamp::getRelativeT...