Releases: dcarbone/gotime
Releases · dcarbone/gotime
v0.6.1
v0.6.0
v0.5.1: jsonSerialize compatibility
- Setting
jsonSerializemethod onWeekday,Month, andDurationclasses to: mixedto support downstream overloading - Specifying some class property types
v0.4.6: Limiting v0.4.x to sub php 8.0
- Adds gha to v0.4.x series
- Limits support to sub php 8.0
v0.4.4: Quality of life improvements
Removed :int typehint on jsonSerialize method to allow for more flexible overloading of the json representation of the Duration type.
v0.4.2: Features!
- Added methods to
Timeclass:UntilUntilDateTimeSinceSinceDateTime
- Added ability to "cast"
\DateIntervaltype toTime\Durationtype - Fixed possible float != int exception on
Time\Time::Nanoseconds()method - Fixed tests so they work with newer phpunits
- Added more tests
v0.4.0: Utility release
- Updates required php version to 7.2+
- Adds
Time::Durationmethod to provide "cast"-like abilities with strings, integers, floats, and instances ofDuration - Misc cleanup
0.3.0: Strict typing
This release does little functionally other than enforce strict typing package-wide and adjust the formatting slightly.
Version iterated in case users were using lazy typing.
0.2.4: Bugfix release
Addresses issue where a zero Duration would be returned when using Time::ParseDuration with value containing > 1 decimal point of precision (i.e. Time::ParseDuration('0.05s');)
0.2.3: Bugfix
Time\Time::getErrorString now correctly returns the formatted error string. Before, the output was ignored.