Skip to content

Documentation / jalali-js / getOffsetMinutes

Function: getOffsetMinutes()

getOffsetMinutes(instantMs, timeZone): number

Defined in: timezone.ts:16

The offset (in minutes, positive east of UTC) that timeZone observes at instantMs. Reads this from Intl's own timezone database rather than reimplementing IANA tzdata, since Intl already carries the authoritative, kept-up-to-date rules (including DST transitions).

Parameters

instantMs

number

timeZone

string

Returns

number