DateTime Queries with qpython

Hello,

I am trying to use qpython to call functions in q but can’t seem to get the serialization working wondering if any has any idea.   I am just trying to call a function with date and time params.

I have

today = numpy.datetime64(datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0))time = [numpy.timedelta64((numpy.datetime64(datetime.datetime.now()) - today), 'ms')]response = q.sync('query', today, time)

but I’m getting 

QWriterException: Unable to serialize type: datetime64[us]

anyone have any experience with this?

Thanks!

Yes, I have same problem, and I only work around it with “update time:string time from result” and parse it back at python. However, I bet there is better solution that that.

qlist(time, qtype=QTIME_LIST)