| **Countdown Clock for New Year's - ??**
on Dec 28, 2006 at 6:50:44 pm |

A client asked me to produce a thirty minute DVD of a COUNTDOWN DIGITAL CLOCK for a New Year's Eve party. HOW DO I DO THIS IN AFTER EFFECTS??

Thanks in advance,

Jim

| **Re: Countdown Clock for New Year's - ??** on Dec 29, 2006 at 3:54:06 pm |

I just something similar for this. I found this in one of the forums on CC.

Basically, I just created my text layer and put the following expression in the source text.

You'll need to adjust the Clockstart. This example countdowns 25 minutes.

Hope that helps.

//countdown clock

ClockStart = 25; //Start time in minutes

start = ClockStart*60; //start time in seconds

compTime = start - time;

eTime = Math.floor(compTime);

csec = Math.floor((compTime - eTime)*100);

ms1 = Math.floor(csec/10);

ms2 = csec%10;

hr = Math.floor(eTime/3600);

h1 = Math.floor(hr/10);

h2 = hr%10;

min = Math.floor((eTime - hr*3600)/60);

m1 = min;

m2 = min%10;

sec = eTime - hr*3600 - min*60;

s1 = Math.floor(sec/10);

s2 = sec%10;

m1 + ':' + s1 + s2