function rotatingtweets_timestamp_link($twitter_object, $timetype = 'default', $targetvalue = '')
{
    $string = '<a ' . $targetvalue . ' href="https://twitter.com/twitterapi/status/' . $twitter_object['id_str'] . '">';
    $tweettimestamp = strtotime($twitter_object['created_at']);
    // echo "<!-- ".$twitter_object['created_at'] . " | " .get_option('timezone_string') ." | $tweettimestamp -->";
    switch ($timetype) {
        case 'short':
            $string .= rotatingtweets_contextualtime_short($tweettimestamp);
            break;
        case 'long':
            $string .= date_i18n(get_option('time_format'), $tweettimestamp + get_option('gmt_offset') * 60 * 60) . " &middot; " . date_i18n(get_option('date_format'), $tweettimestamp + get_option('gmt_offset') * 60 * 60);
            break;
        default:
            $string .= ucfirst(rotatingtweets_contextualtime($tweettimestamp));
            break;
    }
    $string .= '</a>';
    return $string;
}
function rotatingtweets_timestamp_link($twitter_object, $timetype = 'default', $targetvalue = '')
{
    $string = '<a ' . $targetvalue . ' href="https://twitter.com/twitterapi/status/' . $twitter_object['id_str'] . '">';
    $tweettimestamp = strtotime($twitter_object['created_at']);
    // echo "<!-- ".$twitter_object['created_at'] . " | " .get_option('timezone_string') ." | $tweettimestamp -->";
    switch ($timetype) {
        case 'short':
            $string .= rotatingtweets_contextualtime_short($tweettimestamp);
            break;
        case 'long':
            $timezone_string = get_option('timezone_string');
            if (WP_DEBUG) {
                echo "\n<!-- Timezone debug";
                echo "\n- Default timezone used in this script: " . date_default_timezone_get();
                echo "\n- Wordpress timezone setting:           " . $timezone_string;
            }
            if (!empty($timezone_string)) {
                date_default_timezone_set(get_option('timezone_string'));
            }
            if (WP_DEBUG) {
                echo "\n- Reset timezone used in this script:   " . date_default_timezone_get();
                echo "\n- Tweet timestamp:                      " . $tweettimestamp;
                echo "\n- Time format:                          " . get_option('time_format');
                echo "\n- Display time:                         " . date_i18n(get_option('time_format'), $tweettimestamp);
                echo "\n-->";
            }
            $string .= date_i18n(get_option('time_format'), $tweettimestamp) . " &middot; " . date_i18n(get_option('date_format'), $tweettimestamp);
            break;
        default:
            $string .= ucfirst(rotatingtweets_contextualtime($tweettimestamp));
            break;
    }
    $string .= '</a>';
    return $string;
}