Skip to content

Releases: tiny-blocks/time

v1.5.0

07 Mar 18:04
5123e6e

Choose a tag to compare

  • Add DayOfWeek::distanceTo() for forward (wrap-around) day distance calculations.
  • Update TimeOfDay::fromString() to accept HH:MM:SS and discard seconds.
  • Expand PHPUnit coverage and README examples for both features.

v1.4.0

03 Mar 03:36
1c19b82

Choose a tag to compare

  • Add DayOfWeek (ISO-8601 weekday enum) and TimeOfDay (HH:MM value object) with corresponding tests and README documentation.
  • Refactor Duration to use an internal Seconds value object, introduce InvalidSeconds, add divide(), and switch to from*() factories + toSeconds() accessor.
  • Rename Period::of() to Period::from() and update usages across tests and README.

v1.3.0

02 Mar 22:57
d5fb930

Choose a tag to compare

  • Introduces Duration (unsigned seconds-based quantity) with arithmetic, comparisons, and unit conversions.
  • Introduces Period (half-open interval [from, to)) with validation plus contains() and overlapsWith() logic.
  • Extends Instant with plus(), minus(), durationUntil(), and comparison helpers.
  • Updates tests and README accordingly.

v1.2.0

17 Feb 08:49
745c3d7

Choose a tag to compare

  • Added DatabaseDateTimeDecoder to parse database timestamp strings with space separator and optional microsecond precision.
  • Added comprehensive test coverage for database format parsing including edge cases.
  • Updated README with documentation and examples for database timestamp parsing.

v1.1.0

17 Feb 08:04
a450fb0

Choose a tag to compare

  • Implemented findByIdentifierOrUtc method in Timezones class to return a matching timezone or UTC if not found.
  • Updated README.md with usage example for the new method.
  • Added tests for findByIdentifierOrUtc to ensure correct functionality.

v1.0.0

17 Feb 07:29
4ae208c

Choose a tag to compare

  • Introduces Instant (UTC-normalized) with string decoding and Unix-seconds constructors, plus formatting/accessors.
  • Adds Timezone and Timezones collection utilities (construction, lookup, conversion).
  • Adds CI configuration with GitHub Actions for automated testing and code analysis.
  • Enhanced README with project overview and usage instructions.