private static function format_time($start_time, $language, $format)
 {
     global $q_config;
     if (function_exists('qtrans_convertTimeFormat')) {
         // time format from qTranslate
         $format = $q_config['time_format'][$language];
         return qtrans_strftime($format, strtotime($start_time));
     } elseif (function_exists('ppqtrans_convertTimeFormat')) {
         //and qTranslate Plus
         $format = $q_config['time_format'][$language];
         return ppqtrans_strftime($format, strtotime($start_time));
     }
     return date($format, strtotime($start_time));
 }
function ppqtrans_timeFromCommentForCurrentLanguage($old_date, $format = '', $gmt = false, $translate = true)
{
    if (!$translate) {
        return $old_date;
    }
    global $comment;
    $comment_date = $gmt ? $comment->comment_date_gmt : $comment->comment_date;
    return ppqtrans_strftime(ppqtrans_convertTimeFormat($format), mysql2date('U', $comment_date), $old_date);
}
function ppqtrans_formatPostModifiedDateTime($format)
{
    global $post;
    return ppqtrans_strftime(ppqtrans_convertFormat($format, $format), mysql2date('U', $post->post_modified), '', $before, $after);
}