Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: dcarbone/gotime

v0.6.1

07 Apr 00:46
608b2d3

Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v0.6.1

v0.6.0

28 Mar 02:20
a34ce83

Choose a tag to compare

What's Changed

Full Changelog: v0.5.1...v0.6.0

v0.5.1: jsonSerialize compatibility

07 Jan 03:21

Choose a tag to compare

  • Setting jsonSerialize method on Weekday, Month, and Duration classes to : mixed to support downstream overloading
  • Specifying some class property types

v0.4.6: Limiting v0.4.x to sub php 8.0

07 Jan 03:04

Choose a tag to compare

  • Adds gha to v0.4.x series
  • Limits support to sub php 8.0

v0.4.4: Quality of life improvements

27 Jul 16:31

Choose a tag to compare

Removed :int typehint on jsonSerialize method to allow for more flexible overloading of the json representation of the Duration type.

v0.4.2: Features!

16 Dec 22:54

Choose a tag to compare

  • Added methods to Time class:
    • Until
    • UntilDateTime
    • Since
    • SinceDateTime
  • Added ability to "cast" \DateInterval type to Time\Duration type
  • 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

16 Nov 21:42

Choose a tag to compare

  • Updates required php version to 7.2+
  • Adds Time::Duration method to provide "cast"-like abilities with strings, integers, floats, and instances of Duration
  • Misc cleanup

0.3.0: Strict typing

09 Nov 03:06

Choose a tag to compare

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

08 Mar 19:04

Choose a tag to compare

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

05 Mar 13:34

Choose a tag to compare

Time\Time::getErrorString now correctly returns the formatted error string. Before, the output was ignored.