Re: [Pytables-users] datetime objects on tables

2011-11-03 Thread Fernando Paolo
Hi Anthony, Thanks for your suggestions. I'll try number (1) and see how it goes. If, however, I still need number (2) and have the time to do a decent work I let you know. Indeed it would be nice to have the numpy.datetime64 with its arithmetic capabilities supported in pytables. Thanks, -Fernan

Re: [Pytables-users] datetime objects on tables

2011-11-03 Thread Anthony Scopatz
Hello Fernando, I personally have always found the 64-bit time stamps to be much more useful (and much less ambiguous) than Python datetime objects. However, if against my better judgement, you decide to store datetimes, you effectively have three options (in preferred order): 1. Create a nu

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