
Added by roScripts on August-25-2007, 6:45 pm
// Create one object of class Date
mydate = new Date();
// Get the current values like Hours, Minutes and Seconds from the object
if (mydate.getHours()<10) {
// If the value is less than 10 then attach a zero before that value
hrs = "0" add mydate.getHours();
} else {
hrs = mydate.getHours();
}
if (mydate.getMinutes()<10) {
// If the value is less than 10 then attach a zero before that value
mins = "0" add mydate.getMinutes();
} else {
mins = mydate.getMinutes();
}
if (mydate.getSeconds()<10) {
// If the value is less than 10 then attach a zero before that value
sec = "0" add mydate.getSeconds();
} else {
sec = mydate.getSeconds();
}
digitalClock.text = hrs+":"+mins+":"+sec;
Added by roScripts on March-26-2008, 5:14 pm
Added by roScripts on March-26-2008, 5:13 pm
Added by roScripts on March-26-2008, 5:09 pm
Added by roScripts on March-26-2008, 5:08 pm
Added by roScripts on March-26-2008, 5:07 pm