Lines Matching refs:format
456 * @param string $format See https://php.net/date
461 public function format(string $format, string $qualifier = ''): string argument
470 …$format = strtr($format, ['%d' => '', '日' => '', '%j,' => '', '%j' => '', '%l' => '', '%D' => '', …
473 … $format = strtr($format, ['%F' => '', '%m' => '', '%M' => '', '月' => '', '%n' => '', '%t' => '']);
476 … $format = strtr($format, ['%t' => '', '%L' => '', '%G' => '', '%y' => '', '年' => '', '%Y' => '']);
478 $format = trim($format, ',. /-');
480 if ($this->day !== 0 && preg_match('/%[djlDNSwz]/', $format)) {
508 if (str_contains($format, '%d')) {
509 $format = strtr($format, ['%d' => $this->formatDayZeros()]);
511 if (str_contains($format, '%j')) {
512 $format = strtr($format, ['%j' => $this->formatDay()]);
514 if (str_contains($format, '%l')) {
515 $format = strtr($format, ['%l' => $this->formatLongWeekday()]);
517 if (str_contains($format, '%D')) {
518 $format = strtr($format, ['%D' => $this->formatShortWeekday()]);
520 if (str_contains($format, '%N')) {
521 $format = strtr($format, ['%N' => $this->formatIsoWeekday()]);
523 if (str_contains($format, '%w')) {
524 $format = strtr($format, ['%w' => $this->formatNumericWeekday()]);
526 if (str_contains($format, '%z')) {
527 $format = strtr($format, ['%z' => $this->formatDayOfYear()]);
529 if (str_contains($format, '%F')) {
530 $format = strtr($format, ['%F' => $this->formatLongMonth($case)]);
532 if (str_contains($format, '%m')) {
533 $format = strtr($format, ['%m' => $this->formatMonthZeros()]);
535 if (str_contains($format, '%M')) {
536 $format = strtr($format, ['%M' => $this->formatShortMonth()]);
538 if (str_contains($format, '%n')) {
539 $format = strtr($format, ['%n' => $this->formatMonth()]);
541 if (str_contains($format, '%t')) {
542 $format = strtr($format, ['%t' => (string) $this->daysInMonth()]);
544 if (str_contains($format, '%L')) {
545 $format = strtr($format, ['%L' => $this->isLeapYear() ? '1' : '0']);
547 if (str_contains($format, '%Y')) {
548 $format = strtr($format, ['%Y' => $this->formatLongYear()]);
550 if (str_contains($format, '%y')) {
551 $format = strtr($format, ['%y' => $this->formatShortYear()]);
554 if (str_contains($format, '%@')) {
555 $format = strtr($format, ['%@' => $this->formatGedcomCalendarEscape()]);
557 if (str_contains($format, '%A')) {
558 $format = strtr($format, ['%A' => $this->formatGedcomDay()]);
560 if (str_contains($format, '%O')) {
561 $format = strtr($format, ['%O' => $this->formatGedcomMonth()]);
563 if (str_contains($format, '%E')) {
564 $format = strtr($format, ['%E' => $this->formatGedcomYear()]);
567 return $format;