LocalDateTime ldt = the date time object;
Timestamp.newBuilder().setSeconds(ldt.getSecond())
.setNanos(ldt.getNano()))
.build()
Would that work?
On Friday, October 27, 2017 at 8:31:43 PM UTC-5, [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 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/6dafa19c-e764-40ac-b0f1-0ca9c913b1a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.