esios-api-client
Version:
Another ESIOS api client
15 lines (14 loc) • 646 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.PVPCDay = void 0;
const pvpc_day_zoned_general_class_1 = require("./pvpc-day-zoned-general.class");
const pvpc_day_zoned_special_class_1 = require("./pvpc-day-zoned-special.class");
class PVPCDay {
constructor(date) {
const [day, month, year] = date.PVPC[0].Dia.split("/");
this.date = new Date([year, month, day].join("-"));
this.general = new pvpc_day_zoned_general_class_1.PVPCDayZonedGeneral(date.PVPC);
this.special = new pvpc_day_zoned_special_class_1.PVPCDayZonedSpecial(date.PVPC);
}
}
exports.PVPCDay = PVPCDay;
;