Skip to content

Releases: withinboredom/time

Major simplification

10 Jul 16:57
35d7b86
Compare
Choose a tag to compare

This removes the needs for a TimeAndSpace and greatly simplifies the implementation.

Upgrade instructions:

  • Rename AnyTime to Time.
  • Replace ->as* to the new ->as(TimeUnit) method
  • Replace ->from() to use the new from() 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

26 Jun 19:14
d958383
Compare
Choose a tag to compare

This adds support for math by overriding GMP.

Full Changelog: v4.0.3...v4.1.0

v4.0.3

21 Mar 20:38
182d0bb
Compare
Choose a tag to compare

Full Changelog: v4.0.2...v4.0.3

v4.0.2

11 Mar 07:18
Compare
Choose a tag to compare

Full Changelog: 4.0.1...v4.0.2

Fixes a warning emitted from weakmaps.

4.0.1

05 Mar 18:00
71cbff2
Compare
Choose a tag to compare

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

24 Feb 07:03
3d1c3dc
Compare
Choose a tag to compare

Prevents cloning during the creation of DateIntervals which results in a thrown exception.

v3.1

24 Feb 06:49
146c135
Compare
Choose a tag to compare

Cloning and serialization breaks equality, so for now, these features are disabled.

v3.0

23 Feb 22:13
b75dd79
Compare
Choose a tag to compare

This is nearly a complete rewrite but mainly offers the same basic functionality. See readme for details.

Add functions

21 Mar 11:08
Compare
Choose a tag to compare

Can now use

Minutes(5)->inSeconds();

Release 2.0

20 Mar 20:43
Compare
Choose a tag to compare

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.