Name and date variables for comments, Drupal 7

I’m using the following snippet to modify the display of publishing date and author’s name info in Drupal 7 nodes:


$variables['submitted'] = t('Published by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['date']));

I want to modify the same info for comments, specifically by shortening it to just name and date. I may be wrong, but it seems that the equivalent information for comments comes from different variables. The problem is that, despite a lot of searching, I can’t find out what they are. Anyone know? If I can get those variables, the rest will be fairly straightfoward.

Belated, but a stumbled across the answer when I was looking at the Framework theme. It uses something like the following code in the comment.tpl.php template.


<p class="submitted comment-name"><?php print $author; ?><br /><?php print $created; ?></p>

Maybe that will help someone who searches for this as I did.