Great!!! That’s what I was looking for. Thanks for spelling it out to me it
was not at all obvious what ZoneId to use



*From:* [email protected] [mailto:[email protected]] *On
Behalf Of *Selcuk Bozdag
*Sent:* Tuesday, October 31, 2017 1:13 PM
*To:* grpc.io <[email protected]>
*Subject:* [grpc-io] Re: Looking for the best way to send/recieve DateTime
objects using GRPC Java



Hi,



You can use epoch milliseconds. If you're working with LocalDateTime for
instance:



localDateTime.atZone(ZoneId.systemDefault()) .toInstant().toEpochMilli()


would get you something you need I think.



In proto file define it as a long data. Hope it helps.

On Saturday, 28 October 2017 04:31:43 UTC+3, [email protected]
wrote:

I would like to know the best way to send DateTime objects to and from a
GRPC service.

Should I just be sending a string to/from GRPC?

I see there is a Timestamp object but it seems to be not what I'm looking
for, I think?

Thanks



-- 
You received this message because you are subscribed to a topic in the
Google Groups "grpc.io" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/grpc-io/R9_oOEeEWsc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/5e10bf9d-6257-41b5-aa00-f194fbdeb59f%40googlegroups.com
<https://groups.google.com/d/msgid/grpc-io/5e10bf9d-6257-41b5-aa00-f194fbdeb59f%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/82c7a2bdad3d0ad802f39c785410cdca%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to