-
Expression for Digital Clock
Dan/Anyone
in a past posting: “Expressions for a Digital 24 Hour Clock” https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=2&postid=873535
you posted a source text exprssion:
https://forums.creativecow.net/cgi-bin/new_read_post.cgi?forumid=2&postid=862284i have to write a clock that starts at a specific point and stops at a specific point over a specified period… i.e. clock starts at 30.0 seconds and over 2 second climb to 43.14 seconds.
i am new to this and can rework your expression but am confused on a couple things:
what is taking place here in your expression:
function digits(myVal,myNumDigits){
var s = myVal.toString();
while (s.length < myNumDigits) s = '0' + s; return s; } i can follow the rest but am having trouble with what "function" is performing (adobe help, wasnt) then waht is the digits command accomplishing... s i take it is getting the length of myVal i think i can figure it from there... just am not sure what is happening at the beginning... thanks,