-> REFONTE DU DESIGN DES AFFICHEURS CLASSIQUES (GÉNÉRAL + QUAIS) -> IMPLÉMENTATION DU DESIGN AFL : GÉNÉRAL ET QUAIS -> CHOIX DE LA SÉLECTION DES TYPES D'AFFICHEURS (GÉNÉRAL / QUAIS) UNE FOIS LE TYPE D'AFFICHEUR SÉLECTIONNÉS EN COURS DE DÉVELOPPEMENT : -> IMPLÉMENTATION DES PERTURBATION DU LANDEMAIN POUR LES HORAIRES DU LANDEMAIN AFFICHÉS AVANT MINUIT. -> IMPLÉMENTATION DES AFFICHEURS D'INFORMATIONS / INFOS TRAVAUX, etc... (AFFICHEURS AFL)
13 lines
520 B
JavaScript
13 lines
520 B
JavaScript
const horaire_date = "2026-06-14";
|
|
const baseDate = new Date(horaire_date);
|
|
console.log("baseDate before setHours:", baseDate.toString());
|
|
const sched = 330; // 05:30
|
|
baseDate.setHours(Math.floor(sched / 60), sched % 60, 0, 0);
|
|
console.log("baseDate after setHours:", baseDate.toString());
|
|
|
|
const currentTime = new Date("2026-06-14T04:49:15+02:00");
|
|
console.log("currentTime:", currentTime.toString());
|
|
|
|
const diffMinutes = (baseDate.getTime() - currentTime.getTime()) / 60000;
|
|
console.log("diffMinutes:", diffMinutes);
|