Example #1
0
 /**
  * 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 ArabicCalendar();
     parent::__construct($date);
 }
Example #2
0
 /**
  * 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 PersianCalendar();
     parent::__construct($date);
 }