'Return the SQL to cast a datetime value to time value.'

def datetime_cast_time_sql(self, field_name, tzname):

    raise NotImplementedError('subclasses    of    BaseDatabaseOperations    may    require    a    datetime_cast_time_sql()    method')
