[DB-SIG] dbiDate - help urgently needed
Chris Cogdon
chris at cogdon.org
Mon Jun 2 17:56:43 EDT 2003
On Monday, Jun 2, 2003, at 16:40 US/Pacific, Jeff Sacksteder wrote:
> This is working but seems suboptimal. Is this the most correct way to
> go about it?
>
> for row_item in row:
> if type(row_item) is StringType:
> clean_item = clean_str(row_item)
> elif type(row_item) == type(dbi.dbiDate(0)):
Try using
> elif type(row_item) == dbi.DateTimeType
instead (not tried myself. This is coming from Lloyd's information)
--
("`-/")_.-'"``-._ Chris Cogdon <chris at cogdon.org>
. . `; -._ )-;-,_`)
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.'
((,.-' ((,/ fL
More information about the DB-SIG
mailing list