У нас вы можете посмотреть бесплатно how to create a digital clock in flash или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
time=new Date(); var hours=time.getHours(); var minutes=time.getMinutes(); var seconds=time.getSeconds(); var milliseconds=time.getMilliseconds(); //now create the time if (hours,12) { ampm = "AM"; } else{ ampm = "PM"; } while(hours .12){ hours = hours - 12; } if(hours,10) { hours = "0" + hours; } if(minutes,10) { minutes = "0" + minutes; } if(milliseconds,10) { milliseconds = "0" + milliseconds; } if(seconds,10) { seconds = "0" + seconds; } //now create the time like this clock_txt.text=hours + ":" + minutes + ":" + seconds + ":" + milliseconds + ":" + ampm; Note:- if (hours,12) represents that hours is lesser than 12.while(hours .12) represents that hours is greater than 12 if(hours,10) represents that hours is lesser than 12.if(minutes,10) represents that minutes is lesser than 12 . if(milliseconds,10) represents that millisecond is lesser than 10. and finally if(seconds,10) represents that seconds is lesser than 10.