Home
last modified time | relevance | path

Searched refs:subtractYears (Results 1 – 7 of 7) sorted by relevance

/webtrees/tests/app/
H A DTimestampTest.php42 self::assertSame('5 years ago', $timestamp->subtractYears(5)->diffForHumans());
51 self::assertSame('il y a 5 ans', $timestamp->subtractYears(5)->diffForHumans());
235 self::assertSame('2022-12-17 16:21:19', $timestamp->subtractYears(1)->toDateTimeString());
236 self::assertSame('2024-12-17 16:21:19', $timestamp->subtractYears(-1)->toDateTimeString());
/webtrees/app/Services/
H A DCalendarService.php133 …$query->where('d_julianday1', '>=', Registry::timestampFactory()->now()->subtractYears(100)->julia…
329 …ery->where('d_julianday1', '>=', Registry::timestampFactory()->now()->subtractYears(100)->julianDa…
/webtrees/app/Contracts/
H A DTimestampInterface.php152 public function subtractYears(int $years): TimestampInterface; function
/webtrees/resources/views/lists/
H A Danniversaries-list.phtml53 … (<?= Registry::timestampFactory()->now()->subtractYears($fact->anniv)->diffForHumans() ?>)
H A Dfamilies-table.phtml19 $hundred_years_ago = Registry::timestampFactory()->now()->subtractYears(100)->julianDay();
H A Dindividuals-table.phtml28 $hundred_years_ago = Registry::timestampFactory()->now()->subtractYears(100)->julianDay();
/webtrees/app/
H A DTimestamp.php180 public function subtractYears(int $years): TimestampInterface function in Fisharebest\\Webtrees\\Timestamp