Lines Matching refs:calendar
63 protected CalendarInterface $calendar; variable in Fisharebest\\Webtrees\\Date\\AbstractCalendarDate
89 [$this->year, $this->month, $this->day] = $this->calendar->jdToYmd($date);
106 …if ($this->month === 6 && $this->calendar instanceof JewishCalendar && !$this->calendar->isLeapYea…
140 $today = $date->calendar->jdToYmd(Registry::timestampFactory()->now()->julianDay());
141 …$jd = $date->calendar->ymdToJd($today[0], $date->month, $date->day === 0 ? $today[2] : $date->d…
146 [$this->year, $this->month, $this->day] = $this->calendar->jdToYmd($jd);
207 return $this->calendar->isLeapYear($this->year);
221 $this->minimum_julian_day = $this->calendar->ymdToJd($this->year, 1, 1);
222 … $this->maximum_julian_day = $this->calendar->ymdToJd($this->nextYear($this->year), 1, 1) - 1;
225 $this->minimum_julian_day = $this->calendar->ymdToJd($this->year, $this->month, 1);
226 $this->maximum_julian_day = $this->calendar->ymdToJd($ny, $nm, 1) - 1;
228 … $this->minimum_julian_day = $this->calendar->ymdToJd($this->year, $this->month, $this->day);
360 [$year1, $month1, $day1] = $this->calendar->jdToYmd($this->minimum_julian_day);
361 [$year2, $month2, $day2] = $this->calendar->jdToYmd($date->minimum_julian_day);
368 $days += $this->calendar->daysInMonth($year1, $month1);
373 $months += $this->calendar->monthsInYear($year2);
383 * @param string $calendar
387 public function convertToCalendar(string $calendar): AbstractCalendarDate argument
389 switch ($calendar) {
414 …return $this->minimum_julian_day >= $this->calendar->jdStart() && $this->maximum_julian_day <= $th…
424 return $this->calendar->monthsInYear();
435 return $this->calendar->daysInMonth($this->year, $this->month);
450 return $this->calendar->daysInWeek();
601 return $this->dayNames($this->minimum_julian_day % $this->calendar->daysInWeek());
611 … return $this->dayNamesAbbreviated($this->minimum_julian_day % $this->calendar->daysInWeek());
631 return I18N::digits(($this->minimum_julian_day + 1) % $this->calendar->daysInWeek());
641 … return I18N::digits($this->minimum_julian_day - $this->calendar->ymdToJd($this->year, 1, 1));
785 …if ($this->month === 7 && $this->calendar instanceof JewishCalendar && !$this->calendar->isLeapYea…
834 … $this->month === $this->calendar->monthsInYear() ? $this->nextYear($this->year) : $this->year,
835 $this->month % $this->calendar->monthsInYear() + 1,
846 return $this->calendar->jdToYmd(Registry::timestampFactory()->now()->julianDay());
888 'cal' => $this->calendar->gedcomCalendarEscape(),