Ecco la prima parte del codice:
codice:
<!--
var localDate = new Date();
var localTime = localDate.getTime();
var UTCoffset = localDate.getTimezoneOffset();
var UTCTime = localTime + (UTCoffset * 60 * 1000);
var UTCDate = new Date(UTCTime);
var AMPM = true;
var debug = 3;
function getMilliSecOffset(offset) {
return UTCDate.getTime() + (offset * 60 * 60 * 1000);
}
function formatNum(theNum) {
if (theNum < 10)
return "0"+theNum;
else return theNum;
}
function DayLightSaving(beginMonth, beginSunday, endMonth, endSunday) {
this.beginMonth = beginMonth;
this.beginSunday = beginSunday;
this.endMonth = endMonth;
this.endSunday = endSunday;
}
function CityObj(cityName, cityOffset, cityDST, cityAcronym) {
this.cityName = cityName;
this.cityOffset = cityOffset;
this.cityDST = cityDST;
this.cityAcronym = cityAcronym;
}
Domande:
1) Cosa fa la funzione DayLightSaving? Cosa significa:
this.variabile = variabile;
?!?!?!
2) Quando c'é scritto 'else return theNum;' significa che l'utput va scritto da qualche parte altrimenti va tenuto in memoria, non é vero?
Grazie