With the moment-timezone
library I’m currently just retrieving the raw information for a particular timezone and then using that directly in my downstream code.
const zone = moment.tz.zone('Europe/London');
This is an object containing the following:
{
"name":"Europe/London",
"abbrs":["GMT","BST","GMT","BST", ...],
"untils":[-1691964000000,-1680472800000,-1664143200000,-1650146400000, ...],
"offsets":[0,-60,0,-60,0, ...],
"population":10000000
}
The offsets
and untils
arrays are really all I need from moment
… the rest I handle myself “manually” in the downstream code using the offsets
and untils
arrays (or actually just a small subset thereof)… without having to rely on moment
as a dependency.
Is there an equivalent way to extract offsets
and untils
arrays in the luxon
library?