Chronos - 一个DateTime API扩展支持可变和不可变的日期/时间
Chronos - 一个DateTime API扩展支持可变和不可变的日期/时间
2.0.5
Fixed
- Values in the
Ymd
format can now be parsed. - Fixed creating Chronos/MutableDateTime from existing instance.
- Removed remaining HHVM references.
Assets
2
2.0.4
Fixes
- Moved test cases to match other CakePHP projects
- Improved performance of
diffInMonths()
,diffInYears()
anddiffInDays()
.
Assets
2
2.0.3
2.0.2
Changes
- Updated dev dependencies to stable versions.
- Removed duplicate content in README.
- You can now
new
instances of Chronos, MutableDateTime, Date, MutableDate from other instances.
Assets
2
2.0.1
Fixes
- Features from 1.3.0 were merged in as they were accidentally omitted from the 2.0.0 release.
Assets
2
1.2.8
- Additional fixes for relative time parsing with test now instances.
Assets
2
1.2.7
- Improved documentation links
- Fixed regression in parse() with relative times that was introduced in 1.2.6
Assets
2
1.2.6
- Documentation now included in this repository.
testNow()
is now used when parsing relative datetimes that only supply the time component.
Assets
2
1.2.5
- Fix maxValue and minValue not working when timezone is not UTC.
- Slim down zipball archives.
Assets
2
1.2.4
Assets
2
- Improved compatibility of
__debugInfo
methods with IDE debugging.
1.2.2
Chronos 1.2.2
markstory released this
- Fix typing issues that cause errors under strict_types in php 7.1+
1.2.0
Chronos 1.2.0
markstory released this
Changes
- Tests are no longer run against HHVM
- Improved API documentation
- Setting time on a Date instance will now clear microseconds in when microseconds are offered by PHP.
New Features
- Test 'now' is shared across all classes. Changing 'now' in one class will update 'now' in all other classes.
- ChronosInterval::__toString() now normalizes the period to match intervals used in standard clocks. Instead of 147S you will now get 2M27S as an example.
热门度与活跃度
1.7
0.0
Watchers:49 |
Star:1158 |
Fork:52 |
创建时间: 2015-09-16 21:30:45 |
最后Commits: 2月前 |
许可协议:MIT |
30baea5
Compare
Verified
Changes