From: Anthony S. <sc...@gm...> - 2012-06-19 06:17:01
|
Hey Aquil, Yes, the string method certainly works. The other thing you could do that isn't mentioned in that post is have a table or 2D array whose first column is the float timestamp [1] and whose second column is a string repr of just the timezone name (or a int or float of the offset in sec of the timezone). This will likely be faster. All of the strategies mentioned will work, but will have varying speeds. I personally prefer anything with a timestamp since it relies on the canonical form. Be Well Anthony PS I am sorry that you have to deal with timezones. They are a real pain! 1. http://pytables.github.com/usersguide/libref.html#tables.Time64Col On Mon, Jun 18, 2012 at 10:05 PM, Aquil H. Abdullah < aqu...@gm...> wrote: > I need to store dates and timezone aware datetimes in a PyTable. > Currently, I am storing values of those types as ISO 8601 strings. I ran > across the thread pytables for timeseries data ( > http://osdir.com/ml/python.pytables.user/2007-11/msg00036.html) which > leads me to believe that what I am doing is the best way to store these > types of values, but I just wanted to check in case I am missing something. > > Regards, > > -- > Aquil H. Abdullah > aqu...@gm... > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Pytables-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pytables-users > > |