Human: datetime 3 removing the microseconds. Assistant: 
Here is a Python function to datetime 3 removing the microseconds

import datetime

def remove_microseconds(dt):
    """
    returns: a datetime without the microseconds
    """
    return dt.replace(microsecond=0)

# Enter the datetime
dt = datetime.datetime(2018, 1, 1, 12, 12, 12, 12)

# Calling the function
print((remove_microseconds(dt)))

#Example Output
# 2018-01-01 12:12:12

#Remember to inspect code for bugs.