var __starvUtil = {
getTime: function(){
var display = "";
var d = new Date();
var H = d.getHours().toString();
var Min = d.getMinutes().toString();
var S = d.getSeconds().toString();
if (H.length == 1)
H = "0" + H;
if (Min.length == 1)
Min = "0" + Min;
if (S.length == 1)
S = "0" + S;
display = H + Min+ S;
return display;
},
getDate: function(){
var d = new Date();
var year = d.getFullYear().toString();
var month = (d.getMonth() + 1).toString();
var date = d.getDate().toString();
if(month.length == 1) {
month = "0" + month;
}
else
if (month.length == 0) {
month = "";
}
if (date.length == 1) {
date = "0" + date;
}
else
if (date.length == 0) {
date = "";
}
dis_date = year+month+date
return dis_date;
},
getDateTime :function(){
return __starvUtil.getDate() +""+ __starvUtil.getTime();
}
getTime: function(){
var display = "";
var d = new Date();
var H = d.getHours().toString();
var Min = d.getMinutes().toString();
var S = d.getSeconds().toString();
if (H.length == 1)
H = "0" + H;
if (Min.length == 1)
Min = "0" + Min;
if (S.length == 1)
S = "0" + S;
display = H + Min+ S;
return display;
},
getDate: function(){
var d = new Date();
var year = d.getFullYear().toString();
var month = (d.getMonth() + 1).toString();
var date = d.getDate().toString();
if(month.length == 1) {
month = "0" + month;
}
else
if (month.length == 0) {
month = "";
}
if (date.length == 1) {
date = "0" + date;
}
else
if (date.length == 0) {
date = "";
}
dis_date = year+month+date
return dis_date;
},
getDateTime :function(){
return __starvUtil.getDate() +""+ __starvUtil.getTime();
}