[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
19 abr, 16:31, ikalbeniz 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 bytea

[protobuf] Re: uni64 data to uint32 unit time

2010-04-19 Thread ikalbeniz
i have used this API to access to android market: http://code.google.com/p/android-market-api/ (uses google-protobuff- api) i have get all the comments from an app and i get that one of the comments date is 1269450764071 (the one from ikalbeniz) in my custom class all the HTTP protocol is

[protobuf] Re: uni64 data to uint32 unit time

2010-04-19 Thread ikalbeniz
nsigned I get: 1453014483955211943 > > >> Treat it as a variant, though, and you get: > > >> (handle continue bits) > >>             0100100 001 0001001 0100101 100 0100111 > >> (normalize) > >>             01 00100111 100