def conv_in_timestamp(self, timestamp): if isinstance(timestamp, basestring): # Replaces 6 digits microseconds to 4 digits allowed in Firebird timestamp = timestamp[:24] return typeconv_datetime.timestamp_conv_in(timestamp)
def in_timestamp(self, value): if isinstance(value, basestring): value = value[:24] return typeconv_dt.timestamp_conv_in(value)
def in_timestamp(self, value): if isinstance(value, basestring): # Replaces 6 digits microseconds to 4 digits allowed in Firebird value = value[:24] return typeconv_dt.timestamp_conv_in(value)