Lines Matching +full:- +full:m
14 * Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible)
15 * This provides a cross-platform alternative to strftime() for when it will be removed from PHP.
20 * echo strftime('%A %e %B %Y %X', new \DateTime('2021-09-28 00:00:00'), 'fr_FR');
23 * \setlocale(LC_TIME, 'fr_FR.UTF-8');
24 * echo \strftime('%A %e %B %Y %X', strtotime('2021-09-28 00:00:00'));
40 …ception('$timestamp argument is neither a valid UNIX timestamp, a valid date-time string or a Date…
43 $timestamp->setTimezone(new DateTimeZone(date_default_timezone_get()));
60 return sprintf('% 2u', $timestamp->format('j'));
64 return sprintf('%03d', $timestamp->format('z')+1);
72 $day = new DateTime(sprintf('%d-01 Sunday', $timestamp->format('Y')));
73 return sprintf('%02u', 1 + ($timestamp->format('z') - $day->format('z')) / 7);
78 $day = new DateTime(sprintf('%d-01 Monday', $timestamp->format('Y')));
79 return sprintf('%02u', 1 + ($timestamp->format('z') - $day->format('z')) / 7);
86 '%m' => 'm',
90 // Century (-1): 19 for 20th century
91 return floor($timestamp->format('Y') / 100);
94 return substr($timestamp->format('o'), -2);
103 return sprintf('% 2u', $timestamp->format('G'));
107 return sprintf('% 2u', $timestamp->format('g'));
109 '%M' => 'i',
112 '%r' => 'h:i:s A', // %I:%M:%S %p
113 '%R' => 'H:i', // %H:%M
115 '%T' => 'H:i:s', // %H:%M:%S
124 '%D' => 'm/d/Y',
125 '%F' => 'Y-m-d',
130 …$out = preg_replace_callback('/(?<!%)%([_#-]?)([a-zA-Z])/', function ($match) use ($translation_ta…
147 $result = $timestamp->format($replace);
157 case '-':