from datetime import datetime
import pytz


def get_run_time(creation_time):
    """
    Get the time difference between resource creation time and current time in hours
    """
    current_time = datetime.utcnow().replace(tzinfo=pytz.UTC)
    diff = current_time - creation_time
    days, seconds = diff.days, diff.seconds
    hours = days * 24 + seconds // 3600

    return hours