Skip to main content

Protobuf Type


Protobuf Type

Timestamp

import "google.golang.org/protobuf/types/known/timestamppb"

timestamp := timestamppb.Now()

t := timestamp.AsTime() // time.Time