time_struct

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Mar 16 07:46:05 CET 2010


En Sun, 07 Mar 2010 10:50:59 -0300, moerchendiser2k3  
<googler.1.webmaster at spamgourmet.com> escribió:

> can anyone tell me how to return a time_struct from the timemodule in
> my own C-Module?
> Is that possible? I can just find one function in timefuncs.h, but it
> doesnt return any PyObject.

The type is available as the struct_time attribute in the time module; you  
create an instance by calling it with a 9-items sequence.

-- 
Gabriel Genellina




More information about the Python-list mailing list