Topic: Request : class change dependent on last post.

How would I modify the class of TCR dependent on date of post? I'd assume the change would be near:

                                        </td>
                                        <td class="tc2"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_replies'] : ' ' ?></td>
                                        <td class="tc3"><?php echo ($cur_topic['moved_to'] == null) ? $cur_topic['num_views'] : ' ' ?></td>
//change class here
                                        <td class="tcr"><?php echo $last_post ?></td>
                                </tr>

but can't come up with anything to compare it to, any calls for $date, $today, $yesterday return empty. I've tried copying the function inline, but that results in the same.
I'd like to color code the td via css as well as use the today/yesterday/etc.
Help?

Re: Request : class change dependent on last post.

Moved to Modifications

Re: Request : class change dependent on last post.

anyone?