*** cropleyb has joined #zodb | 00:14 | |
*** cropleyb has quit IRC | 00:25 | |
*** cropleyb has joined #zodb | 03:54 | |
*** cropleyb has quit IRC | 05:33 | |
*** cropleyb has joined #zodb | 06:49 | |
*** Knio_ has joined #zodb | 08:51 | |
*** Knio_ has quit IRC | 08:58 | |
*** Knio has quit IRC | 08:59 | |
*** Knio has joined #zodb | 08:59 | |
*** cropleyb has quit IRC | 09:19 | |
*** Knio_ has joined #zodb | 09:34 | |
*** Knio has quit IRC | 09:35 | |
*** agroszer has joined #zodb | 09:41 | |
*** cropleyb has joined #zodb | 11:48 | |
*** cropleyb has quit IRC | 13:14 | |
*** srichter__ has quit IRC | 14:58 | |
*** J1m has joined #zodb | 16:08 | |
*** srichter__ has joined #zodb | 16:14 | |
*** alert77 has joined #zodb | 17:30 | |
alert77 | hi everybody! Is it possible to convert a transaction record tid in a human readable time? | 17:39 |
---|---|---|
alert77 | Thanks for the help | 17:40 |
aclark | alert77: probably… strftime? | 17:46 |
agroszer | alert77, https://github.com/mgedmin/zodbbrowser | 17:47 |
alert77 | aclarck: I would like to revert this... | 18:06 |
alert77 | (Pdb) timetest = time.time() | 18:06 |
alert77 | (Pdb) tid_repr(TimeStamp(*time.gmtime(timetest)[:5] + (timetest % 60,))) | 18:06 |
alert77 | '\x03\xa7\xdf\x88\xc3\xc8y3' | 18:06 |
alert77 | I do not know if it is possible with strftime | 18:06 |
alert77 | agroszer: thanks for the suggestion | 18:07 |
agroszer | np | 18:08 |
alert77 | I am using this: | 18:16 |
alert77 | (Pdb) datetime.fromtimestamp(TimeStamp(t.tid).timeTime()) | 18:16 |
alert77 | datetime.datetime(2014, 7, 1, 2, 10, 4, 686741) | 18:16 |
alert77 | Now I have to understand why I have a timestamp pointing to the first of July... | 18:16 |
alert77 | ;) | 18:16 |
*** nueces has joined #zodb | 18:20 | |
J1m | alert77, str(ZODB.TimeStamp.TimeStamp(tid)) | 18:20 |
J1m | alert77, tids are UTC | 18:21 |
J1m | although it's not july yet in england | 18:21 |
alert77 | Thanks Jim, now I will reply on ZODB-dev! | 18:22 |
*** nueces has quit IRC | 18:39 | |
*** J1m has quit IRC | 19:19 | |
*** agroszer has quit IRC | 19:24 | |
*** fdrake has quit IRC | 19:26 | |
*** J1m has joined #zodb | 19:32 | |
*** alert77 has quit IRC | 19:33 | |
*** fdrake has joined #zodb | 19:34 | |
*** srichter has joined #zodb | 20:26 | |
*** alert77 has joined #zodb | 22:12 | |
*** alert77 has quit IRC | 22:21 | |
*** srichter has quit IRC | 23:05 | |
*** srichter has joined #zodb | 23:07 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!