[protobuf] Developing a PHP interface

2010-03-31 Thread ikalbeniz
Hi, A am developing a PHP simple interface for google protobuffer... i am trying to make querys agains android Market but when uy get the comments i get the data in a 64 bit format.. for example i get 18288305805871599558 that un normal unxi time is 1269993068322 that can be formated with date()

[protobuf] uni64 data to uint32 unit time

2010-04-19 Thread ikalbeniz
Hi, I am developing a custom (and more simple) protobuff class for php. The problem I have is with date format that is stored as uint64. For example in a stream I have get from google Iknow that the “creation time” is satored in a bytearray with A7-DE-A5-89-F9-24-2A-14 if I convert this to uint64

[protobuf] Re: uni64 data to uint32 unit time

2010-04-19 Thread ikalbeniz
)); On 19 abr, 16:31, ikalbeniz txup...@gmail.com wrote: Hi, I am developing a custom (and more simple) protobuff class for php. The problem I have is with date format that is stored as uint64. For example in a stream I have get from google Iknow that the “creation time” is satored in a bytearray

[protobuf] Re: uni64 data to uint32 unit time

2010-04-19 Thread ikalbeniz
0100101 100 0100111 (normalize)             01 00100111 10010001 00101001 0110 00100111 = 1269450764071 Marc On 19 April 2010 15:34, ikalbeniz txup...@gmail.com wrote: here some test i have been doing with c#:            byte[] data2byte = new byte[8];            data2byte