Hi there,
I wrote this small converter for python's standard struct_time object:
diff -r1.2 Converters.py
14a15
> import time
83a85,90
>
> if hasattr(time, "struct_time"):
> def StructTimeConverter(value):
> return time.strftime("'%Y-%m-%d %H:%M:%S'", value)
>
> registerConverter(time.struct_time, StructTimeConverter)
I filed this in SF's bug tracker a while ago:
http://sourceforge.net/tracker/index.php?func=detail&aid=774238&group_id=74338&atid=540672
Hope this is useful!
Cheers
--
Chris AtLee <ch...@at...>
|