* Use double quoted consistently on attributes in linker output; preparing for new...
[mediawiki.git] / maintenance / parserTestsParserTime.php
blob705f9ce79ad1c4d3aad57359004925f290b48198
1 <?php
2 if ( ! defined( 'MEDIAWIKI' ) )
3 die( -1 );
4 /**
5 * A basic extension that's used by the parser tests to test date magic words
7 * Handy so that we don't have to upgrade the parsertests every second to
8 * compensate with the passage of time and certainly less expensive than a
9 * time-freezing device, get yours now!
11 * @package MediaWiki
12 * @subpackage Maintenance
14 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
15 * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason
16 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
19 $wgHooks['ParserGetVariableValueTs'][] = 'wfParserTimeSetup';
21 function wfParserTimeSetup( &$parser, &$ts ) {
22 $ts = 123; //$ perl -le 'print scalar localtime 123' ==> Thu Jan 1 00:02:03 1970
24 return true;