FORUMS: list search recent posts

# Moddify expression digital clock need to make go to 100 minutes

FAQ   •   VIEW ALL
 Moddify expression digital clock need to make go to 100 minutes on Oct 28, 2016 at 9:02:18 pm

Hi guys.
I have reading the forum quite a while now, and found a lot of answers, thank you for that.
I am very good with after effects but i have 0 knowledge about programming.

I am trying to modify one expression but i cant do it on my own, so can someone please help me.
I have expression that is basically a 60 minutes clock starting from 0:0:0 and go to 59:59 and than resets and starts from 0 again.
Can i make it to go to 100 minutes, so not to be 1:40:00 but actually 99:59 or pass that mark, but not to transfer to hours but go pass 59 minutes and go to 99 minutes for example or go even beyond that

Can someone help with this, i will highly appreciate it.
Thank you in advance.

```countspeed = 1; clockStart =0;//Change the time of start function times(n){ if (n &lt; 10) return "0" + n else return "" + n } clockTime = clockStart +countspeed*(time - inPoint); if (clockTime &lt; 0){ minus = "-"; clockTime = -clockTime; }else{ minus = ""; } t = Math.floor(clockTime); h = Math.floor(t/3600); min = Math.floor((t%3600)/60); sec = Math.floor(t%60); ms = clockTime.toFixed(3).substr(-3); minus+ times(min) + ":" + times(sec) ```

 Re: Moddify expression digital clock need to make go to 100 minuteson Oct 28, 2016 at 10:52:48 pm

I'm not sure, but this might be what you want:

``` countspeed = 1; clockStart =0;//Change the time of start function times(n){ if (n < 10) return "0" + n else return "" + n } clockTime = clockStart +countspeed*(time - inPoint); if (clockTime < 0){ minus = "-"; clockTime = -clockTime; }else{ minus = ""; } t = Math.floor(clockTime); min = Math.floor(t/60); sec = Math.floor(t%60); minus+ times(min) + ":" + times(sec) ```

Dan

 Re: Moddify expression digital clock need to make go to 100 minuteson Oct 29, 2016 at 2:43:46 am

It is working.
Thank you so much Dan, you saved me.