/usr/share/doc/php-horde-date-parser/examples/parse.php is in php-horde-date-parser 2.0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | <?php
set_include_path(dirname(dirname(dirname(dirname(__DIR__)))) . '/lib:' . get_include_path());
require 'Horde/Autoloader/Default.php';
$t = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : 'this fortnight';
$opts = count($_SERVER['argv']) > 1 ? array() : array('now' => new Horde_Date('2006-08-16 14:00:00'));
$d = Horde_Date_Parser::parse($t, $opts);
echo "$d\n";
|