Skip to content

Instantly share code, notes, and snippets.

View jericjan's full-sized avatar
🗿
bruh

Kur0 jericjan

🗿
bruh
View GitHub Profile
@jericjan
jericjan / HonkaiCalc.js
Last active August 5, 2023 10:56
honkaihub.com - print crystals between 2 dates
const fromDate = new Date("2023-08-05T00:00:00Z");
const toDate = new Date("2023-10-31T00:00:00Z");
function incrementDay(date) {
const year = date.getFullYear();
const month = date.getMonth();
const day = date.getDate() + 1;
const newDate = new Date(Date.UTC(year, month, day));
return newDate;
}