. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Date; use Fisharebest\ExtCalendar\GregorianCalendar; /** * Definitions for Gregorian dates. */ class GregorianDate extends AbstractGregorianJulianDate { // GEDCOM calendar escape public const ESCAPE = '@#DGREGORIAN@'; /** * Create a date from either: * a Julian day number * day/month/year strings from a GEDCOM date * another CalendarDate object * * @param array|int|AbstractCalendarDate $date */ public function __construct($date) { $this->calendar = new GregorianCalendar(); parent::__construct($date); } }