Releases: alphp/strftime
Releases · alphp/strftime
v0.7.0
v0.6.0
v0.5.0
v0.4.0 Fixed %k format as specified in documentation
Format | Description | Example returned values |
---|---|---|
%k |
Hour in 24-hour format, with a space preceding single digits | 0 through 23 |
v0.3.0 Fixed week formats
Update readme
v0.2.0 Fixed some formats
Added documentation of formats
Added test for all formats
Fixed some formats
v0.1.0 PHPUnit tests
Automatic run PHPUnit tests with Actions.
composer run-script test
v0.0.7 Catch exception thrown by DateTime
Catch exception thrown when creating DateTime object with invalid $timestamp value.
v0.0.6 Removed never thrown InvalidArgumentException
Check if $timestamp is DateTimeInterface instance before treating it as integer or string.
InvalidArgumentException is never thrown
Tranks to @TiberiuD
v0.0.5 Try to use LC_TIME locale if locale param is empty
Using LC_TIME locale if possible will make the function more compatible to the current behaviour.
The Locale class also supports identifiers with dashes and may be more than 5 characters; see https://www.php.net/manual/en/class.locale.php
Thanks to @the-mars