def compute_time_difference_between_tweets(tweet_times):
    """
    This function computes the time intervals between two successive tweet times
    The times should be absolute times in milli seconds

    :param tweet_times: Time of successive tweets in milli seconds

    :return: Time interval between two tweets
    """

    intervals = list()
    # add a single value so that input and output arrays are the same length
    intervals.append(0)
    for idx in range(0, len(tweet_times) - 1):
        # Convert to epoch time and find the difference
        intervals.append(tweet_times[idx].timestamp() - \
                         tweet_times[idx+1].timestamp())

    return intervals