added last months and last quarters to daterange-picker selections (#5317)

This commit is contained in:
Kevin Papst
2025-01-24 15:21:54 +01:00
committed by GitHub
parent bff72b30cc
commit 4a8c2a79c9
41 changed files with 43 additions and 301 deletions

View File

@@ -308,6 +308,11 @@ final class LocaleFormatter
return $this->formatIntl($dateTime, ($withYear ? 'LLLL yyyy' : 'LLLL'));
}
public function quarterName(\DateTimeInterface $dateTime, bool $withYear = false): string
{
return $this->formatIntl($dateTime, ($withYear ? 'QQQ yyyy' : 'QQQ'));
}
public function dayName(\DateTimeInterface $dateTime, bool $short = false): string
{
return $this->formatIntl($dateTime, ($short ? 'EE' : 'EEEE'));