Skip to content

@blazetrails/tzinfo ​

Time zone lookups for Trails, standing in for the tzinfo gem

MeasureValue
Rails counterparttzinfo v2.0.6
API methods matched66% (246 of 372)
Rails tests matched41% (478 of 1161) (7 permanent)
Ruby files ported35
Ruby files unported10
Measured atfe89b44726

Gaps by file ​

Ported files with Rails methods or tests still missing, largest gap first.

Ruby fileTypeScript fileMethods missingTests matched
timezone.rbtimezone.ts240 / 126
country.rbcountry.ts021 / 37
data_source.rbdata-source.ts028 / 41
timezone_period.rbtimezone-period.ts311 / 21
timezone_offset.rbtimezone-offset.ts04 / 14
data_sources/ruby_data_source.rbdata-sources/ruby-data-source.ts029 / 37 (1 permanent)
timezone_proxy.rbtimezone-proxy.ts05 / 13
format2/timezone_definer.rbformat2/timezone-definer.ts011 / 17
timezone_transition.rbtimezone-transition.ts26 / 8
offset_timezone_period.rboffset-timezone-period.ts05 / 7
transitions_timezone_period.rbtransitions-timezone-period.ts06 / 8
data_sources/country_info.rbdata-sources/country-info.ts07 / 8 (2 permanent)
data_sources/linked_timezone_info.rbdata-sources/linked-timezone-info.ts05 / 6 (2 permanent)
tzinfo.rbtzinfo.ts00 / 1

Missing methods ​

The Rails methods parity:api finds no TypeScript counterpart for, by Ruby file.

timezone.rb: 24 missing

to_local, local_time, local_datetime, local_timestamp, offsets_up_to, now, current_time_and_period, current_period_and_time, strftime, abbreviation, base_utc_offset, utc_offset, hash, _dump, default_dst=, default_dst, all_data_zones, all_data_zone_identifiers, all_linked_zones, all_linked_zone_identifiers, all_country_zones, all_country_zone_identifiers, data_source, _load

timezone_period.rb: 3 missing

local_starts_at, local_ends_at, timestamp_with_offset

timezone_transition.rb: 2 missing

local_end_at, local_start_at

Unported Ruby files ​

Deviation receipts ​

JSDoc receipt tags in the package's source, by the receipt each carries.

TagPERMANENTCONVERGEABLEnone
@noRailsEquivalent220
@missingRailsCall010
@inventedArm010
@perf020
@internal0095

Permanently skipped tests ​

Ruby Strings are JS string primitives (no mutable String carrier) (7)

Ratified deviations ​

Each rule below is ratified in the repository's CLAUDE.md files. The first paragraph is quoted; the link opens the full section at this build's commit.

Ruby Strings are JS string primitives (no mutable String carrier) ​

A Ruby String is a mutable object with identity. str << "x" and str.replace("y") change the receiver in place, str.dup is a second object with the same content, and frozen? is a per-object fact. ActiveModel leans on all three:

CLAUDE.md →

Source ​

packages/tzinfo on GitHub →