Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 136) sorted by relevance

123456

/webtrees/app/Date/
H A DAbstractCalendarDate.php456 * @param string $format See https://php.net/date
461 public function format(string $format, string $qualifier = ''): string function in Fisharebest\\Webtrees\\Date\\AbstractCalendarDate
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')) {
[all …]
/webtrees/tests/app/
H A DTimestampTest.php63 self::assertSame('17', $timestamp->format('d'));
64 self::assertSame('Sun', $timestamp->format('D'));
65 self::assertSame('17', $timestamp->format('j'));
66 self::assertSame('Sunday', $timestamp->format('l'));
67 self::assertSame('7', $timestamp->format('N'));
68 self::assertSame('th', $timestamp->format('S'));
69 self::assertSame('0', $timestamp->format('w'));
70 self::assertSame('350', $timestamp->format('z'));
71 self::assertSame('50', $timestamp->format('W'));
72 self::assertSame('December', $timestamp->format('F'));
[all …]
/webtrees/tests/app/Factories/
H A DCalendarDateFactoryTest.php41 static::assertSame(GregorianDate::ESCAPE, $date->format('%@'));
63 static::assertSame($calendar_escape, $date->format('%@'));
75 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
86 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
97 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
108 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
119 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
130 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
141 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
152 static::assertSame('@#DGREGORIAN@', $date->format('%@'));
[all …]
/webtrees/app/Statistics/Repository/
H A DServerRepository.php37 $format = strtr(I18N::dateFormat(), ['%' => '']);
39 return Registry::timestampFactory()->now(new SiteUser())->format($format);
47 $format = strtr(I18N::timeFormat(), ['%' => '']);
49 return Registry::timestampFactory()->now(new SiteUser())->format($format);
57 return Registry::timestampFactory()->now(new SiteUser())->format('G:i');
65 return Registry::timestampFactory()->now(new SiteUser())->format('T');
H A DLatestUserRepository.php109 * @param string|null $format
113 public function latestUserRegDate(string|null $format = null): string argument
115 $format ??= I18N::dateFormat();
119 return Registry::timestampFactory()->make($timestamp)->format(strtr($format, ['%' => '']));
123 * @param string|null $format
127 public function latestUserRegTime(string|null $format = null): string argument
129 $format ??= str_replace('%', '', I18N::timeFormat());
132 return date($format, (int) $user->getPreference(UserInterface::PREF_TIMESTAMP_REGISTERED));
H A DBrowserRepository.php36 $format = strtr(I18N::dateFormat(), ['%' => '']);
38 return Registry::timestampFactory()->now()->format($format);
46 $format = strtr(I18N::timeFormat(), ['%' => '']);
48 return Registry::timestampFactory()->now()->format($format);
56 return Registry::timestampFactory()->now()->format('T');
/webtrees/app/
H A DTimestamp.php56 public function format(string $format): string argument
58 return $this->carbon->format($format);
61 public function isoFormat(string $format): string argument
63 return $this->carbon->isoFormat($format);
68 return $this->carbon->format('Y-m-d');
73 return $this->carbon->format('Y-m-d H:i:s');
/webtrees/app/Module/
H A DMediaListModule.php175 $format = Validator::queryParams($request)->isInArrayKeys($formats)->string('format', '');
178 $media_objects = $this->allMedia($tree, $folder, $subdirs, 'title', $filter, $format);
195 'format' => $format,
243 * @param string $format option OBJE/FILE/FORM/TYPE
247 … $tree, string $folder, bool $subfolders, string $sort, string $filter, string $format): Collection argument
289 if ($format !== '') {
290 $query->where('source_media_type', '=', $format);
/webtrees/app/Contracts/
H A DTimestampInterface.php40 * @param string $format
44 public function format(string $format): string; argument
47 * @param string $format
51 public function isoFormat(string $format): string; argument
/webtrees/resources/views/
H A Dcalendar-page.phtml48 … <?= (new Date($cal_date->format("%@ {$d} %O %E")))->minimumDate()->format('%j') ?>
53 <b><?php $tmp = new Date($today->format('%@ %A %O %E')); echo $tmp->display() ?></b>
72 <b><?= $today->format('%F %Y') ?></b>
101 <?= $today->format('%Y') ?>
241 …. e(route(CalendarPage::class, ['cal' => $tmp->format('%@'), 'day' => $tmp->day(), 'month' => $tmp…
/webtrees/app/Factories/
H A DTimestampFactory.php57 * @param string $format
62 …public function fromString(string|null $string, string $format = 'Y-m-d H:i:s', UserInterface|null… argument
64 $string ??= date($format);
65 $timestamp = date_create_from_format($format, $string);
68 …w InvalidArgumentException('date/time "' . $string . '" does not match pattern "' . $format . '"');
/webtrees/app/Statistics/Repository/Interfaces/
H A DLatestUserRepositoryInterface.php51 * @param string|null $format
55 public function latestUserRegDate(string|null $format = null): string; argument
60 * @param string|null $format
64 public function latestUserRegTime(string|null $format = null): string; argument
/webtrees/resources/views/modules/media-list/
H A Dpagination.phtml26 …er' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'p…
34 …er' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'p…
46 …er' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'p…
54 …er' => $folder, 'subdirs' => $subdirs, 'filter' => $filter, 'format' => $format, 'max' => $max, 'p…
/webtrees/app/Services/
H A DMediaFileService.php245 $format = '';
247 $format = strtoupper(pathinfo($file, PATHINFO_EXTENSION));
248 $format = Registry::elementFactory()->make('OBJE:FILE:FORM')->canonical($format);
251 if ($format !== '') {
252 $gedcom .= "\n2 FORM " . strtr($format, ["\n" => "\n3 CONT "]);
H A DGedcomImportService.php426 'multimedia_format' => mb_substr($media_file->format(), 0, 4),
586 'd_month' => $date->minimumDate()->format('%O'),
594 'd_type' => $date->minimumDate()->format('%@'),
599 'd_month' => $date->maximumDate()->format('%O'),
607 'd_type' => $date->minimumDate()->format('%@'),
750 $format = $match[1] ?? '';
786 if ($format !== '') {
787 $gedcom .= "\n2 FORM " . $format;
824 'multimedia_format' => mb_substr($format, 0, 4),
H A DGedcomExportService.php99 …* @param string $format One of: gedcom, zip, zipmed…
109 string $format, argument
114 if ($format === 'gedcom') {
130 if ($format === 'zipmedia') {
132 } elseif ($format === 'gedzip') {
141 if ($format === 'gedzip') {
/webtrees/app/Cli/Commands/
H A DUserList.php60 …istered = Registry::timestampFactory()->make(timestamp: $registered)->format(format: 'Y-m-d H:i:s'…
66 …t_login = Registry::timestampFactory()->make(timestamp: $last_login)->format(format: 'Y-m-d H:i:s'…
/webtrees/resources/lang/hi/
H A Dmessages.po49 #, php-format
55 #, php-format
66 #, php-format
71 #, php-format
76 #, php-format
84 #, php-format
90 #, php-format
97 #, php-format
103 #, php-format
109 #, php-format
[all …]
/webtrees/resources/lang/sw/
H A Dmessages.po44 #, php-format
50 #, php-format
61 #, php-format
66 #, php-format
71 #, php-format
79 #, php-format
85 #, php-format
92 #, php-format
98 #, php-format
104 #, php-format
[all …]
/webtrees/resources/lang/ko/
H A Dmessages.po45 #, php-format
51 #, php-format
62 #, php-format
67 #, php-format
72 #, php-format
80 #, php-format
86 #, php-format
92 #, php-format
98 #, php-format
104 #, php-format
[all …]
/webtrees/resources/lang/yi/
H A Dmessages.po45 #, php-format
51 #, php-format
62 #, php-format
67 #, php-format
72 #, php-format
80 #, php-format
86 #, php-format
93 #, php-format
99 #, php-format
105 #, php-format
[all …]
/webtrees/resources/lang/bg/
H A Dmessages.po44 #, php-format
50 #, php-format
61 #, php-format
66 #, php-format
71 #, php-format
79 #, php-format
85 #, php-format
92 #, php-format
98 #, php-format
104 #, php-format
[all …]
/webtrees/resources/lang/fa/
H A Dmessages.po47 #, php-format
53 #, php-format
64 #, php-format
69 #, php-format
74 #, php-format
82 #, php-format
88 #, php-format
95 #, php-format
101 #, php-format
107 #, php-format
[all …]
/webtrees/resources/lang/ms/
H A Dmessages.po44 #, php-format
50 #, php-format
61 #, php-format
66 #, php-format
71 #, php-format
79 #, php-format
85 #, php-format
91 #, php-format
97 #, php-format
103 #, php-format
[all …]
/webtrees/resources/lang/sr/
H A Dmessages.po51 #, php-format
57 #, php-format
68 #, php-format
73 #, php-format
78 #, php-format
86 #, php-format
92 #, php-format
100 #, php-format
106 #, php-format
112 #, php-format
[all …]

123456