Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 195) sorted by relevance

12345678

/webtrees/tests/app/Factories/
H A DCalendarDateFactoryTest.php39 $date = $factory->make('');
41 static::assertSame(GregorianDate::ESCAPE, $date->format('%@'));
42 static::assertSame(0, $date->year);
43 static::assertSame(0, $date->month);
44 static::assertSame(0, $date->day);
62 $date = $factory->make($calendar_escape);
63 static::assertSame($calendar_escape, $date->format('%@'));
64 static::assertSame(0, $date->year);
65 static::assertSame(0, $date->month);
66 static::assertSame(0, $date->day);
[all …]
/webtrees/app/Services/
H A DGedcomImportService.php48 use function date; alias
101 [$date, $text] = explode('(', $data, 2);
104 $date = $data;
108 $date = strtoupper($date);
110 $date = ' ' . $date . ' ';
112 $date = preg_replace('/([A-Z])(\d)/', '$1 $2', $date);
113 $date = preg_replace('/(\d)([A-Z])/', '$1 $2', $date);
115 $date = preg_replace('/@#[^@]+@/', ' $0 ', $date);
117 $date = preg_replace('/(\w\w)\./', '$1', $date);
119 $date = str_replace(' CIR ', ' ABT ', $date);
[all …]
H A DCalendarService.php66 $date = new Date($calendar . ' ' . $year);
67 $calendar_date = $date->minimumDate();
183 …if ($fact->date()->minimumJulianDay() === $anniv_date->minimumJulianDay() || $fact->date()->maximu…
239 …c fn (Fact $x, Fact $y): int => $x->jd <=> $y->jd ?: $x->date()->minimumJulianDay() <=> $y->date()…
243 …c fn (Fact $x, Fact $y): int => $x->jd <=> $y->jd ?: $y->date()->minimumJulianDay() <=> $x->date()…
382 $min_date = $fact->date()->minimumDate();
383 $max_date = $fact->date()->maximumDate();
/webtrees/app/
H A DIndividual.php104 $date = new Date($match[1]);
105 … if ($date->isOK() && $date->gregorianYear() + $KEEP_ALIVE_YEARS_BIRTH > date('Y')) {
115 $date = new Date($match[1]);
116 … if ($date->isOK() && $date->gregorianYear() + $KEEP_ALIVE_YEARS_DEATH > date('Y')) {
233 $date = new Date($date_match);
234 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * $MAX_ALIVE_AGE) {
253 $date = new Date($date_match);
254 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE + 45)) {
265 $date = new Date($date_match);
267 … if ($date->isOK() && $date->maximumJulianDay() <= $today_jd - 365 * ($MAX_ALIVE_AGE - 10)) {
[all …]
H A DFact.php162 private Date $date; variable in Fisharebest\\Webtrees\\Fact
394 public function date(): Date function in Fisharebest\\Webtrees\\Fact
396 $this->date ??= new Date($this->attribute('DATE'));
398 return $this->date;
543 $date = $this->date();
544 if ($date->isOK()) {
546 …$attributes[] = $date->display() . view('fact-parents-age', ['individual' => $this->record, 'birth…
548 $attributes[] = $date->display();
591 if ($this->date()->isOK()) {
592 $items[] = $this->date()->minimumDate()->format('%Y');
[all …]
H A DTree.php29 use function date; alias
367 $today = strtoupper(date('d M Y'));
368 $now = date('H:i:s');
412 $today = strtoupper(date('d M Y'));
413 $now = date('H:i:s');
457 $today = strtoupper(date('d M Y'));
458 $now = date('H:i:s');
502 $today = strtoupper(date('d M Y'));
503 $now = date('H:i:s');
H A DDate.php56 * @param string $date A date in GEDCOM format
58 public function __construct(string $date) argument
63 if (preg_match('/^(.*) ?[(](.*)[)]/', $date, $match)) {
64 $date = $match[1];
67 if (preg_match('/^(FROM|BET) (.+) (AND|TO) (.+)/', $date, $match)) {
72 } elseif (preg_match('/^(TO|FROM|BEF|AFT|CAL|EST|INT|ABT) (.+)/', $date, $match)) {
76 $this->date1 = $calendar_date_factory->make($date);
H A DGedcomRecord.php37 use function date; alias
547 if ($fact->date()->isOK()) {
577 if ($event->date()->isOK()) {
578 $dates[] = $event->date();
710 $date = $chan->date()->minimumDate();
711 $ymd = sprintf('%04d-%02d-%02d', $date->year(), $date->month(), $date->day());
1165 $today = strtoupper(date('d M Y'));
1166 $now = date('H:i:s');
H A DRelationship.php403 …ts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new …
404 …ts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new …
502 …ts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new …
503 …ts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new …
530 …ts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new …
531 …ts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->date())->first() ?? new …
/webtrees/app/Date/
H A DAbstractCalendarDate.php83 public function __construct(array|int|AbstractCalendarDate $date) argument
86 if (is_int($date)) {
87 $this->minimum_julian_day = $date;
88 $this->maximum_julian_day = $date;
89 [$this->year, $this->month, $this->day] = $this->calendar->jdToYmd($date);
95 if (is_array($date)) {
96 $this->day = (int) $date[2];
97 $this->month = static::MONTH_TO_NUMBER[$date[1]] ?? 0;
103 $this->year = $this->extractYear($date[0]);
116 $this->minimum_julian_day = $date->minimum_julian_day;
[all …]
/webtrees/resources/views/help/
H A Ddate.phtml42 <?php foreach ($date_dates as $code => $date) : ?>
45 <?= $date ?>
80 <?php foreach ($date_range_dates as $code => $date) : ?>
83 <?= $date ?>
118 <?php foreach ($date_period_dates as $code => $date) : ?>
121 <?= $date ?>
158 <?php foreach ($julian_dates as $code => $date) : ?>
161 <?= $date ?>
174 <?php foreach ($jewish_dates as $code => $date) : ?>
177 <?= $date ?>
[all …]
/webtrees/app/Module/
H A DTimelineChartModule.php239 $baseyear = (int) date('Y');
249 $date = new GregorianDate($bdate->minimumJulianDay());
251 $birthyears [$individual->xref()] = $date->year;
252 $birthmonths[$individual->xref()] = max(1, $date->month);
253 $birthdays [$individual->xref()] = max(1, $date->day);
266 $date = $event->date();
267 if ($date->isOK()) {
268 $date = new GregorianDate($date->minimumJulianDay());
269 $baseyear = min($baseyear, $date->year);
270 $topyear = max($topyear, $date->year);
[all …]
H A DShareAnniversaryModule.php102 ->filter(fn (Fact $fact): bool => $fact->date()->isOK())
103 ->filter(fn (Fact $fact): bool => $fact->date()->qual1 === '')
104 ->filter(fn (Fact $fact): bool => $fact->date()->minimumDate() instanceof GregorianDate)
105 …->filter(fn (Fact $fact): bool => $fact->date()->minimumJulianDay() === $fact->date()->maximumJuli…
108 $fact->label() . ' — ' . $fact->date()->display(),
142 'DTSTART' => $fact->date()->minimumDate()->format('%Y%m%d'),
H A DYahrzeitModule.php107 $date = $fact->date();
108 …if ($date->minimumDate() instanceof JewishDate && $date->minimumJulianDay() === $date->maximumJuli…
113 $hd = $fact->date()->minimumDate();
147 'fact_date' => $fact->date(),
/webtrees/resources/views/
H A Dfact-date.phtml49 $date = new Date($match[1]); variable
50 $html .= ' ' . $date->display($cal_link ? $record->tree() : null, null, true);
63 $html .= view('fact-parents-age', ['individual' => $record, 'birth_date' => $date]);
74 $death_date = $death_event->date();
80 if ($tag === 'DEAT' || Date::compare($date, $death_date) <= 0 || !$record->isDead()) {
82 $age = (string) new Age($birth_date, $date);
110 if ($tag !== 'DEAT' && $death_date->isOK() && Date::compare($death_date, $date) <= 0) {
112 $event_day = $date->minimumDate()->day();
113 … if ($death_day !== 0 && $event_day !== 0 && Date::compare($death_date, $date) === 0) {
120 $age = (string) new Age($death_date, $date);
/webtrees/app/Factories/
H A DCalendarDateFactory.php42 * @param string $date
46 public function make(string $date): AbstractCalendarDate argument
49 …_match('/^(@#D(?:GREGORIAN|JULIAN|HEBREW|HIJRI|JALALI|FRENCH R|ROMAN)+@) ?(.*)/', $date, $match)) {
51 $date = $match[2];
56 …HR|MEHR|ABAN|AZAR|DEY|BAHMA|ESFAN) ?((?:\d{1,4}(?: B\.C\.)?|\d\d\d\d\/\d\d)?)$/', $date, $match)) {
60 } elseif (preg_match('/^(\d{1,4}(?: B\.C\.)?|\d\d\d\d\/\d\d)$/', $date, $match)) {
71 if (preg_match('/(\d{3,4})/', $date, $match)) {
75 …|DHUAQ|DHUAH|FARVA|ORDIB|KHORD|TIR|MORDA|SHAHR|MEHR|ABAN|AZAR|DEY|BAHMA|ESFAN)/', $date, $match)) {
78 if (preg_match('/\b(\d\d?)\b/', $date, $match)) {
/webtrees/resources/js/
H A Dwebtrees.js386 let date;
391 date = new Date(day + ' ' + month + ' ' + year);
393 date = new Date();
396 dateDiv.innerHTML = calGenerateSelectorContent(dateFieldId, dateDivId, date);
415 function calGenerateSelectorContent (dateFieldId, dateDivId, date) { argument
421 if (date.getDate() === i) {
430 if (date.getMonth() + 1 === i) {
436 …ntrol" type="text" id="' + dateFieldId + '_yearInput" size="5" value="' + date.getFullYear() + '" …
454 let tdate = new Date(date.getFullYear(), date.getMonth(), 1);
465 if (tdate.getMonth() === date.getMonth()) {
[all …]
/webtrees/resources/views/modules/timeline-chart/
H A Dchart.phtml290 $gdate = $event->date();
291 $date = $gdate->minimumDate(); variable
292 $date = $date->convertToCalendar('gregorian'); variable
293 $year = $date->year();
294 $month = max(1, $date->month());
295 $day = max(1, $date->day());
/webtrees/app/Census/
H A DCensusColumnYearsMarried.php46 if ($fact->date()->isOK() && Date::compare($fact->date(), $this->date()) <= 0) {
47 $marriage_date = $fact->date();
56 $age = new Age($marriage_date, $this->date());
H A DCensusColumnMonthIfMarriedWithinYear.php41 $marriage_jd = $fact->date()->julianDay();
42 $census_jd = $this->date()->julianDay();
45 return ucfirst(strtolower($fact->date()->minimumDate()->format('%O')));
/webtrees/resources/views/modules/relatives/
H A Dfamily.phtml131 … <span class="field"><?= $fact->date()->display() ?> — <?= $fact->place()->fullName() ?></span>
136 if (!$prev->isOK() && $fact->date()->isOK()) {
137 $prev = $fact->date();
173 if ($bfact->date()->isOK()) {
174 $next = $bfact->date();
/webtrees/app/Report/
H A DReportParserSetup.php124 $date = Registry::timestampFactory()->now();
125 $this->input['default'] = strtoupper($date->format('d M Y'));
129 $date = Registry::timestampFactory()->now()->addDays((int)$match[1]);
130 $this->input['default'] = strtoupper($date->format('d M Y'));
/webtrees/tests/app/Census/
H A DCensusColumnBirthYearTest.php37 $date = $this->createMock(Date::class);
38 $date->method('minimumDate')->willReturn($cal_date);
41 $individual->method('getEstimatedBirthDate')->willReturn($date);
H A DCensusColumnBirthDayTest.php37 $date = $this->createMock(Date::class);
38 $date->method('minimumDate')->willReturn($cal_date);
41 $individual->method('getEstimatedBirthDate')->willReturn($date);
H A DCensusColumnBirthMonthTest.php37 $date = $this->createMock(Date::class);
38 $date->method('minimumDate')->willReturn($cal_date);
41 $individual->method('getEstimatedBirthDate')->willReturn($date);

12345678