Lines Matching +full:- +full:- +full:-

11 Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible)
13 This provides a cross-platform alternative to strftime() for when it will be removed from PHP.
22 - [Requirements](#requirements)
23 - [Installation](#installation)
24 - [Composer install](#composer-install)
25 - [Manual install](#manual-install)
26 - [Usage](#usage)
27 - [Original use](#original-use)
28 - [Formats](#formats)
29 - [Day](#day)
30 - [Week](#week)
31 - [Month](#month)
32 - [Year](#year)
33 - [Time](#time)
34 - [Time and Date Stamps](#time-and-date-stamps)
35 - [Miscellaneous](#miscellaneous)
38 - PHP >= 7.1.0
39 - ext-intl ([Internationalization extension ICU](https://www.php.net/manual/en/book.intl.php))
41 [TOC](#table-of-contents)
48 - Add php81_bc/strftime package to your project:
53 - Load the function PHP81_BC\strftime in your project
60 [TOC](#table-of-contents)
63 - Download [php-8.1-strftime.php](https://github.com/alphp/strftime/raw/master/src/php-8.1-strftime…
64 - Load the function PHP81_BC\strftime in your project
67 require 'php-8.1-strftime.php';
71 [TOC](#table-of-contents)
76 echo strftime('%A %e %B %Y %X', new \DateTime('2021-09-28 00:00:00'), 'fr_FR');
79 [TOC](#table-of-contents)
83 \setlocale(LC_TIME, 'fr_FR.UTF-8');
84 echo \strftime('%A %e %B %Y %X', strtotime('2021-09-28 00:00:00'));
87 [TOC](#table-of-contents)
93 |:------:|--------------------------------------------------------|--------------------------------…
96 | `%d` | Two-digit day of the month (with leading zeros) | `01` to `31` …
99 | `%u` | ISO-8601 numeric representation of the day of the week | `1` (for `Monday`) through `7` …
102 [TOC](#table-of-contents)
105------:|------------------------------------------------------------------------------------------…
107 | `%V` | ISO-8601:1988 week number of the given year, starting withthe first week of the year wit…
110 **NOTE**: All week formats are two-digit, with leading zeros.
112 [TOC](#table-of-contents)
115 |:------:|----------------------------------------------------------------|------------------------…
121 [TOC](#table-of-contents)
124 |:------:|----------------------------------------------------------------------------------------|
126 | `%g` | Two digit representation of the year going by ISO-8601:1988 standards (see `%V`) |…
127 | `%G` | The full four-digit version of `%g` |…
131 [TOC](#table-of-contents)
134 |:------:|-------------------------------------------------------------------------------|---------…
135 | `%H` | Two digit representation of the hour in 24-hour format | `00` thr…
136 | `%k` | Hour in 24-hour format, with a space preceding single digits | `' 0'` t…
137 | `%I` | Two digit representation of the hour in 12-hour format | `01` thr…
138 | `%l` | (lower-case 'L') Hour in 12-hour format, with a space preceding single digits | `' 1'` t…
140 | `%p` | UPPER-CASE '`AM`' or '`PM`' based on the given time | Example:…
141 | `%P` | lower-case '`am`' or '`pm`' based on the given time | Example:…
147 …offset | Example: `-0500` for `US Eastern…
150 [TOC](#table-of-contents)
153 |:------:|-----------------------------------------------------------------|-----------------------…
156 | `%F` | Same as "`%Y-%m-%d`" (commonly used in database datestamps) | Example: `2009-02-05` …
160 [TOC](#table-of-contents)
163 |:------:|--------------------------------------|
168 [TOC](#table-of-contents)