Changelog 1.12
Release notes of @northguild/gmt 1.12.0, newest first, built from packages/gmt/CHANGELOG.md. Back to Changelog.
@burglekitt/gmt
Section titled “@burglekitt/gmt”
In memoriam: @burglekitt. These releases were published under the retired @burglekitt npm scope. The package continues as @northguild/gmt from 1.14.2; install @northguild/gmt.
1.12.0
Section titled “1.12.0”Released 2026-08-21
Minor Changes
Section titled “Minor Changes”-
a3e7474: Add
intervalOverlappingDays*— the number of distinct calendar days two intervals share (Story I1):intervalOverlappingDaysDate,intervalOverlappingDaysDateTime,intervalOverlappingDaysZoned,intervalOverlappingDaysUnix,intervalOverlappingDaysUtc
Returns
0when the intervals are disjoint andnullon invalid input. Counting is inclusive of both endpoints, matching GMT’s closed-interval model:["2024-01-01", "2024-01-01"]overlapping itself is1day, not0. This differs from date-fns’sgetOverlappingDaysInIntervals, which rounds up elapsed 24-hour periods instead — composeintervalCount*overintervalIntersection*’s result for that behavior. There is noTimevariant:PlainTimehas no calendar. -
95ae01f: Add
roundingMethodoption to theformatRelative*family (Story I2):formatRelativeDate,formatRelativeDateTime,formatRelativeTime,formatRelativeZoned,formatRelativeUnix,formatRelativeUtc
roundingMethod?: "floor" | "ceil" | "round"controls how the computed distance rounds to the display unit — applied to the signed fractional value, matching date-fns’sformatDistanceStrict. Defaults to"round", matching existing behavior; no call-signature changes. -
2d589c8: Add
getDstTransitions— enumerate daylight-saving-time transition points for an IANA timezone in a given year (Story I3):getDstTransitions
Returns an array of
{ instant, offsetBefore, offsetAfter }objects representing each DST transition. Returns[]for zones with no transitions in the requested year or on invalid input. -
3da0864: Add
getHoursInZonedDay— the number of hours in a specific zoned calendar day (Story I4):getHoursInZonedDay(value: string): number | null
Returns
23on spring-forward days,25on fall-back days, and24on normal days — or a fractional value for zones whose DST shift isn’t a whole hour (e.g.Australia/Lord_Howe’s 30-minute shift returns23.5/24.5). Zoned-only — this is meaningless without a timezone. Returnsnullon invalid input per GMT’s number-return sentinel convention.
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.