def _time_to_datetime(value):
if not isinstance(value, datetime.time):<EOL><INDENT>raise TypeError('<STR_LIT>'<EOL>'<STR_LIT>' % value)<EOL><DEDENT>return datetime.datetime(<NUM_LIT>, <NUM_LIT:1>, <NUM_LIT:1>,<EOL>value.hour, value.minute, value.second,<EOL>value.microsecond)<EOL>
Convert a time to a datetime for Cloud Datastore storage.

    Args:
      value: A datetime.time object.

    Returns:
      A datetime object with date set to 1970-01-01.