Hey there! I have a dataset structured like this:
let events = {
"KOTH Airship": ["EVERY 19:00"],
"KOTH Castle": ["EVERY 20:00"],
Totem: ["EVERY 17:00", "EVERY 23:00"],
Jump: ["Monday 18:00"],
"Laby PvP": ["Tuesday 18:00"],
"MegaKOTH Nether": ["Wednesday 18:00"],
AirDrop: ["Thusday 18:00"],
"Rain of Items": ["Friday 18:00"],
"MegaKOTH Pyramid": ["Saturday 18:00"],
"MegaKOTH End": ["Sunday 18:00"],
};
I'm looking to find out how I can calculate the time remaining from today until the next specified event (whether it's a specific day or marked as EVERY). Any ideas on how to achieve this?