from datetime import datetime


def parse_time(x):
    """Extract hour, day, month, and year from time category."""
    DD = datetime.strptime(x, "%Y-%m-%d %H:%M:%S")
    time = DD.hour
    day = DD.day
    month = DD.month
    year = DD.year
    return time, day, month, year