Human: time struct from timestamp. Assistant: 
Here is a Python code to time struct from timestamps

import time

def get_time_struct(timestamp):
    """
    Returns a time struct from timestamp.
    """
    return time.strptime(timestamp, '%Y-%m-%d %H:%M:%S')

# Enter the timestamp
timestamp = "2018-01-01 12:00:00"

# Calling the function
print((get_time_struct(timestamp)))

#Example Output
# time.struct_time(tm_year=2018, tm_mon=1, tm_mday=1, tm_hour=12, tm_min=0, tm_sec=0, tm_wday=0, tm_yday=1, tm_isdst=-1)

#Remember to inspect code for bugs.