@bongione/tz-offset
v0.0.1
Published
Simple functions to calculate the offset of instant in times
Maintainers
Readme
tz-offset
Provides a single function to know the offset (in minutes) of a certain timezone at an instant in time, represented as number of milliseconds since the epoch:
timezoneOffset(ianaTimezone: string, millisFromEpoch: number): numberFor Asia x minutes ahead of UTC, for America x seconds behind UTC (negative).
For timezones that are not recognized, we throw an exception.
The library uses the IANA datasets as published by moment-timezone.
Licence
MIT
