Re: [Pytables-users] datetime objects on tables

2011-11-02 Thread Fernando Paolo
Hi Ben, Thanks for the reply. Actually that's the way my measurements come (a single number representing seconds since a reference epoch). What I need is to fractionate this number into the respective time elements (year, month, day, hour, secs, micro secs) and operate with them. So I would apprec

Re: [Pytables-users] datetime objects on tables

2011-11-02 Thread Ben Elliston
Hi Fernando I don't know about datetime, per se, but you can also convert your times/dates into time since Unix epoch and store that as a single 64-bit integer. Cheers, Ben -- RSA(R) Conference 2012 Save $700 by Nov 18 R

[Pytables-users] datetime objects on tables

2011-11-02 Thread Fernando Paolo
Hello, Is it possible to represent `datetime` objects on tables? Or, for that matter, how to represent time information when this is not a single number? I guess one could simple define one column per time element (e.g., Y, M, D, h, m, s, us), but that doesn't sound very practical (I would need 9