Find out what time was last comment posted on a node
node_created and node_changed refers only to node itself.

In views you should be able to add relationship " Comment: Last Comment".
Then, you'll have filter and field like "Comment: comment time". You can add this field as non-display one and then use it in templates for fields after it. Will be simpler and more reliable than preprocess functions.