[protobuf] protobuf timestamp json encoding zone

2021-09-09 Thread 唐毅
why protobuf timestamp encoding always use UTC time but accept both UTC and 
other timezones? hope encoding not use UTC time 

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/df750d1f-f23a-494e-abf1-8e4a84976e15n%40googlegroups.com.


Re: [protobuf] Timestamp

2017-05-18 Thread Leonardo Toledo
Okay! Thanks for your help.

Best regards,
Leonardo Toledo

On 17 May 2017 at 19:13, Feng Xiao  wrote:

>
>
> On Wed, May 17, 2017 at 8:10 AM, Leonardo Toledo 
> wrote:
>
>> Hi! I am using protobufs but i need to use the version 2 (syntax 2) of
>> protobufs and at the same time i need to use the a timestamp, but the
>> examples that i saw they use always the syntax 3 of protobufs. I already
>> checked the protobufs documentation and i read that in syntax 2 also exist
>> a timestamp, so my question is, how can i use your timestamp with syntax 2
>> of protobufs?
>>
>> This is my code:
>> import https://github.com/golang/protobuf/ptypes/timestamp/
>> timestamp.proto (BUT THIS DOES EXIST A LINK TO THIS ALREADY)
>> import https://github.com/google/protobuf/blob/master/src/
>> google/protobuf/timestamp.proto (BUT THIS IS USING PROTO 3)
>>
>> repeated google.protobuf.Timestamp timestamp = 1;
>>
>> This does works, can anyone help me please and tell me how can i use the
>> timestamp in protoc 2 ?
>>
> timestamp.proto uses proto3 syntax, but you can use it in a proto2 syntax
> file.
>
>
>>
>> Thanks in advance! I am waiting for on response from you!
>>
>> Best regards,
>> Leonardo Toledo
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to protobuf+unsubscr...@googlegroups.com.
>> To post to this group, send email to protobuf@googlegroups.com.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>


-- 
Da Vinci

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Timestamp

2017-05-17 Thread 'Feng Xiao' via Protocol Buffers
On Wed, May 17, 2017 at 8:10 AM, Leonardo Toledo 
wrote:

> Hi! I am using protobufs but i need to use the version 2 (syntax 2) of
> protobufs and at the same time i need to use the a timestamp, but the
> examples that i saw they use always the syntax 3 of protobufs. I already
> checked the protobufs documentation and i read that in syntax 2 also exist
> a timestamp, so my question is, how can i use your timestamp with syntax 2
> of protobufs?
>
> This is my code:
> import https://github.com/golang/protobuf/ptypes/timestamp/timestamp.proto
> (BUT THIS DOES EXIST A LINK TO THIS ALREADY)
> import https://github.com/google/protobuf/blob/master/
> src/google/protobuf/timestamp.proto (BUT THIS IS USING PROTO 3)
>
> repeated google.protobuf.Timestamp timestamp = 1;
>
> This does works, can anyone help me please and tell me how can i use the
> timestamp in protoc 2 ?
>
timestamp.proto uses proto3 syntax, but you can use it in a proto2 syntax
file.


>
> Thanks in advance! I am waiting for on response from you!
>
> Best regards,
> Leonardo Toledo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Timestamp

2017-05-17 Thread Leonardo Toledo
Hi! I am using protobufs but i need to use the version 2 (syntax 2) of 
protobufs and at the same time i need to use the a timestamp, but the 
examples that i saw they use always the syntax 3 of protobufs. I already 
checked the protobufs documentation and i read that in syntax 2 also exist 
a timestamp, so my question is, how can i use your timestamp with syntax 2 
of protobufs? 

This is my code:
import https://github.com/golang/protobuf/ptypes/timestamp/timestamp.proto 
(BUT THIS DOES EXIST A LINK TO THIS ALREADY)
import 
https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto
 
(BUT THIS IS USING PROTO 3)

repeated google.protobuf.Timestamp timestamp = 1;

This does works, can anyone help me please and tell me how can i use the 
timestamp in protoc 2 ? 

Thanks in advance! I am waiting for on response from you! 

Best regards,
Leonardo Toledo 

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.