//Replace [TIME VALUE] with a number or time value
timeToTimecode([TIME VALUE]);
/**
* Apply to the Source Text property of a text layer
* to show the current comp time as a timecode
**/
timeToTimecode(time);
Apply the following to the source text property of a text layer, make sure the text layer has a slider control effect applied. You can then animate the slider to produce a countdown / count up timer.
timeToTimecode(effect("Slider Control")("Slider"));