Releases: withinboredom/time
Major simplification
This removes the needs for a TimeAndSpace and greatly simplifies the implementation.
Upgrade instructions:
- Rename
AnyTime
toTime
. - Replace
->as*
to the new->as(TimeUnit)
method - Replace
->from()
to use the newfrom()
method
If you were using the TimeAndSpace implementation, create your own implementation of TimeUnit
and make sure it is loaded before this library.
v4.1.0
This adds support for math by overriding GMP.
Full Changelog: v4.0.3...v4.1.0
v4.0.3
Full Changelog: v4.0.2...v4.0.3
v4.0.2
Full Changelog: 4.0.1...v4.0.2
Fixes a warning emitted from weakmaps.
4.0.1
Full Changelog: v4.0.0...4.0.1
This is a major refactor to simplify the structure of the code, from feedback on Reddit. It now makes more sense.
Fix DateIntervals
Prevents cloning during the creation of DateIntervals which results in a thrown exception.
v3.1
Cloning and serialization breaks equality, so for now, these features are disabled.
v3.0
This is nearly a complete rewrite but mainly offers the same basic functionality. See readme for details.
Add functions
Can now use
Minutes(5)->inSeconds();
Release 2.0
I realized that saying Seconds::from(2)->minutes
looked very confusing because reading "seconds from 2 minutes" made it seem as though I'd get the number of seconds instead of minutes. So, this is a backward-incompatible change to return the seconds, instead of minutes.