Migrate brick/date-time to TypeScript

B Production-ready · version 0.9.0

brick/date-time 0.9.0 is a PHP package released under the MIT license and requires PHP ^8.2. Pext migrates it to TypeScript; on Node.js, 7,703 of 7,853 PHPUnit tests pass (98.0%), with 12 failures and 138 errors. It has no tracked dependencies, and 1 tracked package depends on it.

Date and time library

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

98.0% of 7,853 tests passing (7,703 passed, 12 failed, 138 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The 5 test classes with the most failing tests on Node.js:

Test classFailing tests
ZonedDateTimeTest47
InstantTest30
LocalDateTimeTest16
LocalTimeTest16
TimeZoneRegionTest10

The remaining 31 failing tests are spread across other classes.

What “Production-ready” means

Passes at least 80% of its original tests and behaves like the PHP original on the paths that matter. Remaining gaps are tracked.

Requirements

PHP
^8.2
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

More from brick

Upstream

Version
0.9.0
License
MIT
Keywords
Brick, DateTime, Date, Time, DayOfWeek, Duration, Instant, Interval

Migrating a codebase that uses brick/date-time?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.