 // FONCTIONS ET METHODES D'AFFICHE DE LA DATE
   
function complete2(nombre) {
    // met un "0" devant un nombre s'il est < 10
    return (nombre < 10) ? "0" + nombre : nombre;}
   
Date.prototype.afficherDate = function() {
    // affiche la date
    return complete2(this.getDate()) + "/" + complete2(this.getMonth() + 1) + "/" + this.getFullYear();}

Date.prototype.afficherHeure = function() {
    // affiche l'heure
    return complete2(this.getHours()) + "h " + complete2(this.getMinutes());}
   
Date.prototype.afficherDateHeure = function() {
    return this.afficherDate() + " " + this.afficherHeure();}
   
   // CALCUL SIMPLE DE L'HEURE LOCALE EN FONCTION DU FUSEAU HORAIRE
function calculerHeureLocale(mon_fuseau) {
    // calcule l'heure en fonction du fuseau horaire - retourne un objet Date
    var heure = new Date();
    heure.setTime(heure.getTime() + (heure.getTimezoneOffset() + mon_fuseau*60) * 60 * 1000);
    return heure;}
   
function afficherMonHeure1(mon_fuseau) {
   // affiche l'heure en fonction du fuseau horaire
   var heure = calculerHeureLocale(mon_fuseau);
    return heure.afficherHeure();}