/webtrees/app/Date/ |
H A D | JulianDate.php | 53 * @param int $year 57 protected function nextYear(int $year): int argument 59 if ($year === -1) { 63 return $year + 1; 69 * @param string $year 73 protected function extractYear(string $year): int argument 75 if (preg_match('/^(\d\d\d\d)\/\d{1,4}$/', $year, $match)) { 82 if (preg_match('/^(\d+) B\.C\.$/', $year, $match)) { 86 return (int) $year; 96 if ($this->year < 0) { [all …]
|
H A D | AbstractCalendarDate.php | 65 public int $year; variable in Fisharebest\\Webtrees\\Date\\AbstractCalendarDate 89 [$this->year, $this->month, $this->day] = $this->calendar->jdToYmd($date); 103 $this->year = $this->extractYear($date[0]); 106 … === 6 && $this->calendar instanceof JewishCalendar && !$this->calendar->isLeapYear($this->year)) { 121 $this->year = $date->year; 130 $this->year = 0; 138 if ($date->year === 0) { 146 [$this->year, $this->month, $this->day] = $this->calendar->jdToYmd($jd); 148 if ($date->year === 0) { 149 $this->year = 0; [all …]
|
H A D | JewishDate.php | 105 return (new JewishCalendar())->numberToHebrewNumerals($this->year, false); 119 return (new JewishCalendar())->numberToHebrewNumerals($this->year, true); 355 $this->year, 361 $this->year + ($this->month === 13 ? 1 : 0),
|
H A D | RomanDate.php | 41 return sprintf('%04dAUC', $this->year); 51 return $this->year . 'AUC';
|
H A D | FrenchDate.php | 345 return 'An ' . $this->roman_numerals_service->numberToRomanNumerals($this->year);
|
/webtrees/resources/views/ |
H A D | calendar-page.phtml | 47 … ['cal' => $cal, 'day' => $d, 'month' => $cal_month, 'year' => $cal_date->year(), 'filterev' => $f… 52 … $cal, 'day' => $today->day(), 'month' => $today_month, 'year' => $today->year(), 'filterev' => $f… 63 …' => $cal, 'day' => $cal_date->day(), 'month' => $m, 'year' => $cal_date->year(), 'filterev' => $f… 71 …day(), $today->daysInMonth()), 'month' => $today_month, 'year' => $today->year(), 'filterev' => $f… 90 …l_date->day(), 'month' => $cal_month, 'year' => $cal_date->year() === 1 ? -1 : $cal_date->year() -… 94 <input type="text" id="year" name="year" value="<?= $year ?>" size="4"> 96 …l_date->day(), 'month' => $cal_month, 'year' => $cal_date->year() === -1 ? 1 : $cal_date->year() +… 100 …$cal, 'day' => $cal_date->day(), 'month' => $cal_month, 'year' => $today->year(), 'filterev' => $f… 118 <input type="hidden" name="year" value="<?= e($cal_date->year()) ?>"> 138 …l, 'day' => $cal_date->day(), 'month' => $cal_month, 'year' => $cal_date->year(), 'filterev' => $f… [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | CalendarPage.php | 62 $year = Validator::queryParams($request)->string('year', ''); 67 if ($cal . $day . $month . $year === '') { 73 if (str_starts_with($year, '-')) { 74 $year = substr($year, 1) . ' B.C.'; 76 $ged_date = new Date($cal . ' ' . $day . ' ' . $month . ' ' . $year); 78 $year = $ged_date->minimumDate()->year; 89 if ($cal_date->year === 0) { 90 $cal_date->year = $today->year; 95 if ($year === 0) { 96 $year = $cal_date->year; [all …]
|
H A D | CalendarEvents.php | 72 $year = Validator::queryParams($request)->string('year'); 77 $ged_date = new Date($cal . ' ' . $day . ' ' . $month . ' ' . $year); 91 $ged_year = new Date($cal . ' ' . $year);
|
H A D | RedirectCalendarPhp.php | 49 $year = Validator::queryParams($request)->string('year', ''); 63 'year' => $year,
|
/webtrees/tests/app/Factories/ |
H A D | CalendarDateFactoryTest.php | 42 static::assertSame(0, $date->year); 64 static::assertSame(0, $date->year); 76 static::assertSame(0, $date->year); 87 static::assertSame(1970, $date->year); 98 static::assertSame(1970, $date->year); 109 static::assertSame(1970, $date->year); 120 static::assertSame(1960, $date->year); 131 static::assertSame(1960, $date->year); 142 static::assertSame(1960, $date->year); 153 static::assertSame(0, $date->year); [all …]
|
/webtrees/app/Module/ |
H A D | YahrzeitModule.php | 115 ++$hd1->year; 119 … if ($hd->day === 30 && $hd->month === 2 && $hd->year !== 0 && $hd1->daysInMonth() < 30) { 121 $jd_yahrtzeit = $jewish_calendar->ymdToJd($today->year, 3, 1) - 1; 122 … } elseif ($hd->day === 30 && $hd->month === 3 && $hd->year !== 0 && $hd1->daysInMonth() < 30) { 124 $jd_yahrtzeit = $jewish_calendar->ymdToJd($today->year, 4, 1) - 1; 125 …} elseif ($hd->day === 30 && $hd->month === 6 && $hd->year !== 0 && $today->daysInMonth() < 30 && … 127 $jd_yahrtzeit = $jewish_calendar->ymdToJd($today->year, 6, 1) - 1;
|
H A D | LifespansChartModule.php | 294 $year = $this->jdToYear($jd); 297 return min($year, (int) date('Y')); 453 foreach ($rows as $row => $year) { 454 if ($year < $birth_year) {
|
H A D | TimelineChartModule.php | 251 $birthyears [$individual->xref()] = $date->year; 269 $baseyear = min($baseyear, $date->year); 270 $topyear = max($topyear, $date->year);
|
/webtrees/resources/views/modules/lifespans-chart/ |
H A D | chart.phtml | 23 <?php for ($year = $start_year; $year < $end_year; $year += 10) : variable 24 ?><div class="wt-lifespans-decade"><?= $year ?></div><?php
|
/webtrees/app/Services/ |
H A D | CalendarService.php | 60 * @param int $year 64 public function calendarMonthsInYear(string $calendar, int $year): array argument 66 $date = new Date($calendar . ' ' . $year); 316 $query->where('d_year', '<=', $anniv->year()); 386 $fact->anniv = $row->d_year === '0' ? 0 : $anniv->year - $row->d_year; 445 $tmp = new JewishDate([(string) $anniv->year, 'CSH', '1']); 473 $tmp = new JewishDate([(string) $anniv->year, 'KSL', '1']);
|
H A D | GedcomImportService.php | 588 'd_year' => $date->minimumDate()->year, 601 'd_year' => $date->maximumDate()->year,
|
/webtrees/app/Statistics/Repository/ |
H A D | EventRepository.php | 235 'year' => (int) $row->year, 298 if ($row->year < 0) { 299 $row->year = abs($row->year) . ' B.C.'; 302 return (new Date($row->type . ' ' . $row->year))
|
H A D | FamilyDatesRepository.php | 89 'year' => (int) $row->year, 202 if ($row->year < 0) { 203 $row->year = abs($row->year) . ' B.C.'; 206 return (new Date($row->type . ' ' . $row->year))
|
/webtrees/resources/views/modules/timeline-chart/ |
H A D | chart.phtml | 293 $year = $date->year(); variable 297 $yoffset = 0 + ($year - $baseyear) * $scale - $scale;
|
/webtrees/resources/js/ |
H A D | webtrees.js | 390 let year = RegExp.$3; 391 date = new Date(day + ' ' + month + ' ' + year); 496 function calSetDateField (dateFieldId, year, month, day) { argument 498 dateField.value = (day < 10 ? '0' : '') + day + ' ' + monthShort[month + 1] + ' ' + year; 545 webtrees.calDateClicked = function (dateFieldId, dateDivId, year, month, day) { argument 546 calSetDateField(dateFieldId, year, month, day);
|
/webtrees/app/ |
H A D | Date.php | 309 $tmp->date1->year += $years; 408 [$year] = $gregorian_calendar->jdToYmd($this->julianDay()); 410 return $year;
|
H A D | Individual.php | 605 [$year] = $gregorian_calendar->jdToYmd(intdiv(max($min) + min($max), 2)); 606 $this->estimated_birth_date = new Date('EST ' . $year);
|
H A D | Timestamp.php | 48 return gregoriantojd($this->carbon->month, $this->carbon->day, $this->carbon->year);
|
H A D | Family.php | 258 return $this->getMarriageDate()->minimumDate()->year;
|
/webtrees/resources/lang/en-GB/ |
H A D | messages.po | 392 msgid "%s year" 394 msgstr[0] "%s year" 400 msgid "%s year anniversary" 401 msgstr "%s year anniversary" 1700 msgid "Age in year of first marriage" 1701 msgstr "Age in year of first marriage" 1706 msgid "Age in year of marriage" 1707 msgstr "Age in year of marriage" 5299 msgid "Died less than 1 year old, sealing not required." 5300 msgstr "Died less than 1 year old, sealing not required." [all …]
|