human
Can you show me a Python code to time struct from timestamp.
assistant
Here is a Python code to time struct from timestamps

import time

def _time_struct(timestamp):
    """
    Convert timestamp to time struct.
    """
    return time.strptime(timestamp, "%Y-%m-%d %H:%M:%S")

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

# Calling the function
print((_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.