google.protobuf.timestamp example nodejs
Example: javascript grpc timestamp
const timestamp = google.protobuf.Timestamp.fromObject({
seconds: timeMS / 1000,
nanos: (timeMS % 1000) * 1e6
})
const timestamp = google.protobuf.Timestamp.fromObject({
seconds: timeMS / 1000,
nanos: (timeMS % 1000) * 1e6
})