Home
last modified time | relevance | path

Searched refs:Date (Results 1 – 25 of 178) sorted by relevance

12345678

/webtrees/tests/app/
H A DAgeTest.php31 $x = new Date('27 APR 2019');
32 $y = new Date('27 APR 2019');
43 $x = new Date('APR 2019');
44 $y = new Date('APR 2019');
55 $x = new Date('2019');
56 $y = new Date('2019');
67 $x = new Date('13 FEB 2019');
68 $y = new Date('07 JAN 2019');
79 $x = new Date('');
80 $y = new Date('07 JAN 2019');
[all …]
/webtrees/tests/app/Census/
H A DCensusColumnConditionCanadaWidowedTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionCanadaTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionUsTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionCanadaMarriedWidowedTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionCanadaWidowedMaleTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionCanadaMarriedSingleTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionCanadaWidowedFemaleTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionFrenchVeuveTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
110 $family->expects($this->once())->method('getMarriageDate')->willReturn(new Date(''));
138 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
[all …]
H A DCensusColumnConditionFrenchGarconTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionFrenchVeufTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionFrenchHommeTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionFrenchFilleTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionEnglishTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionDanishTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnConditionFrenchFemmeTest.php22 use Fisharebest\Webtrees\Date; alias
39 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
54 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
67 $family->method('getMarriageDate')->willReturn(new Date(''));
72 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
86 $family->method('getMarriageDate')->willReturn(new Date(''));
91 $individual->method('getEstimatedBirthDate')->willReturn(new Date('1800'));
107 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
137 $spouse->method('getDeathDate')->willReturn(new Date('1820'));
165 $family->method('getMarriageDate')->willReturn(new Date(''));
[all …]
H A DCensusColumnChildrenDiedTest.php22 use Fisharebest\Webtrees\Date; alias
50 $child1->method('getBirthDate')->willReturn(new Date('01 FEB 1904'));
51 $child1->method('getDeathDate')->willReturn(new Date('01 FEB 1904'));
55 $child2->method('getBirthDate')->willReturn(new Date('02 FEB 1904'));
56 $child2->method('getDeathDate')->willReturn(new Date('20 DEC 1912'));
60 $child3->method('getBirthDate')->willReturn(new Date('02 FEB 1904'));
61 $child3->method('getDeathDate')->willReturn(new Date('20 DEC 1910'));
65 $child4->method('getBirthDate')->willReturn(new Date('01 FEB 1904'));
66 $child4->method('getDeathDate')->willReturn(new Date(''));
H A DCensusColumnChildrenLivingTest.php22 use Fisharebest\Webtrees\Date; alias
50 $child1->method('getBirthDate')->willReturn(new Date('01 FEB 1904'));
51 $child1->method('getDeathDate')->willReturn(new Date('01 FEB 1904'));
55 $child2->method('getBirthDate')->willReturn(new Date('02 FEB 1904'));
56 $child2->method('getDeathDate')->willReturn(new Date('20 DEC 1912'));
60 $child3->method('getBirthDate')->willReturn(new Date('02 FEB 1904'));
61 $child3->method('getDeathDate')->willReturn(new Date('20 DEC 1910'));
65 $child4->method('getBirthDate')->willReturn(new Date('01 FEB 1904'));
66 $child4->method('getDeathDate')->willReturn(new Date(''));
H A DCensusColumnChildrenBornAliveTest.php22 use Fisharebest\Webtrees\Date; alias
50 $child1->method('getBirthDate')->willReturn(new Date('01 FEB 1904'));
51 $child1->method('getDeathDate')->willReturn(new Date('01 FEB 1904'));
55 $child2->method('getBirthDate')->willReturn(new Date('02 FEB 1904'));
56 $child2->method('getDeathDate')->willReturn(new Date('20 DEC 1912'));
60 $child3->method('getBirthDate')->willReturn(new Date('02 FEB 1904'));
61 $child3->method('getDeathDate')->willReturn(new Date('20 DEC 1910'));
65 $child4->method('getBirthDate')->willReturn(new Date('01 FEB 1904'));
66 $child4->method('getDeathDate')->willReturn(new Date(''));
/webtrees/app/
H A DIndividual.php50 private Date|null $estimated_birth_date = null;
52 private Date|null $estimated_death_date = null;
61 …return static fn (Individual $x, Individual $y): int => Date::compare($x->getEstimatedBirthDate(),…
71 …return static fn (Individual $x, Individual $y): int => Date::compare($x->getEstimatedDeathDate(),…
104 $date = new Date($match[1]);
115 $date = new Date($match[1]);
233 $date = new Date($date_match);
253 $date = new Date($date_match);
265 $date = new Date($date_match);
276 $date = new Date($date_match);
[all …]
H A DRelationship.php403 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date
404 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date
406 return Date::compare($date1, $date2) > 0;
502 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date
503 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date
530 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date
531 …'BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new Date
533 return Date::compare($date1, $date2) < 0;
/webtrees/app/Services/
H A DIndividualFactsService.php22 use Fisharebest\Webtrees\Date; alias
181 * @param Date $min_date
182 * @param Date $max_date
186 …vidual $person, Family $family, string $option, string $relation, Date $min_date, Date $max_date):…
613 * @param Date $min_date
614 * @param Date $max_date
618 …private function parentFacts(Individual $person, int $sosa, Date $min_date, Date $max_date): Colle…
750 …if ($sosa === 1 && Date::compare($fact->date(), $min_date) < 0 || $this->includeFact($fact, $min_d…
783 * @param Date $min_date
784 * @param Date $max_date
[all …]
H A DCalendarService.php23 use Fisharebest\Webtrees\Date; alias
24 use Fisharebest\Webtrees\Date\AbstractCalendarDate;
25 use Fisharebest\Webtrees\Date\FrenchDate;
26 use Fisharebest\Webtrees\Date\GregorianDate;
27 use Fisharebest\Webtrees\Date\HijriDate;
28 use Fisharebest\Webtrees\Date\JalaliDate;
29 use Fisharebest\Webtrees\Date\JewishDate;
30 use Fisharebest\Webtrees\Date\JulianDate;
66 $date = new Date($calendar . ' ' . $year);
179 …$anniv_date = new Date($row->d_type . ' ' . $row->d_day . ' ' . $row->d_month . ' ' . $row->d_year…
[all …]
/webtrees/app/Factories/
H A DCalendarDateFactory.php24 use Fisharebest\Webtrees\Date\AbstractCalendarDate;
25 use Fisharebest\Webtrees\Date\FrenchDate;
26 use Fisharebest\Webtrees\Date\GregorianDate;
27 use Fisharebest\Webtrees\Date\HijriDate;
28 use Fisharebest\Webtrees\Date\JalaliDate;
29 use Fisharebest\Webtrees\Date\JewishDate;
30 use Fisharebest\Webtrees\Date\JulianDate;
31 use Fisharebest\Webtrees\Date\RomanDate;
/webtrees/app/Http/RequestHandlers/
H A DCalendarEvents.php22 use Fisharebest\Webtrees\Date; alias
23 use Fisharebest\Webtrees\Date\FrenchDate;
24 use Fisharebest\Webtrees\Date\GregorianDate;
25 use Fisharebest\Webtrees\Date\HijriDate;
26 use Fisharebest\Webtrees\Date\JalaliDate;
27 use Fisharebest\Webtrees\Date\JewishDate;
28 use Fisharebest\Webtrees\Date\JulianDate;
77 $ged_date = new Date($cal . ' ' . $day . ' ' . $month . ' ' . $year);
91 $ged_year = new Date($cal . ' ' . $year);
212 $tmp = new Date($cal_date->format('%@ ' . $d . ' %O %E'));

12345678