Big Update

This commit is contained in:
2025-03-25 21:48:41 +01:00
parent ec6b611646
commit 18605dfc64
16 changed files with 615 additions and 63 deletions

View File

@@ -0,0 +1,24 @@
const ParseTools = require("./ParseTools");
class SchoolYear {
#data;
constructor(data) {
this.#data = data;
this.id = data.ID;
this.title = data.SJ;
this.from = ParseTools.parseDateTime(this.rawFrom);
this.to = ParseTools.parseDateTime(this.rawTo);
}
get rawFrom() {
return this.#data.von;
}
get rawTo() {
return this.#data.bis;
}
}
module.exports = SchoolYear