summaryrefslogtreecommitdiff
path: root/app/Date/GregorianDate.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Date/GregorianDate.php')
-rw-r--r--app/Date/GregorianDate.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/app/Date/GregorianDate.php b/app/Date/GregorianDate.php
index 47902f3582..01d34de736 100644
--- a/app/Date/GregorianDate.php
+++ b/app/Date/GregorianDate.php
@@ -1,6 +1,4 @@
<?php
-namespace Fisharebest\Webtrees\Date;
-
/**
* webtrees: online genealogy
* Copyright (C) 2015 webtrees development team
@@ -15,14 +13,22 @@ namespace Fisharebest\Webtrees\Date;
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+namespace Fisharebest\Webtrees\Date;
use Fisharebest\ExtCalendar\GregorianCalendar;
/**
- * Class GregorianDate - Definitions for the Gregorian calendar
+ * Definitions for the Gregorian calendar
*/
class GregorianDate extends CalendarDate {
- /** {@inheritdoc} */
+ /**
+ * Create a date from either:
+ * a Julian day number
+ * day/month/year strings from a GEDCOM date
+ * another CalendarDate object
+ *
+ * @param array|int|CalendarDate $date
+ */
public function __construct($date) {
$this->calendar = new GregorianCalendar;
parent::__construct($date);