. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Date; /** * Definitions for Roman dtes. * * The 5.5.1 gedcom spec mentions this calendar, but gives no details of * how it is to be represented.... This class is just a place holder so that * webtrees won’t compain if it receives one. */ class RomanDate extends JulianDate { // GEDCOM calendar escape public const ESCAPE = '@#DROMAN@'; /** * Generate the %E format for a date. * * @return string */ protected function formatGedcomYear(): string { return sprintf('%04dAUC', $this->year); } /** * Generate the %Y format for a date. * * @return string */ protected function formatLongYear(): string { return $this->year . 'AUC'; } }