Skip to content

Commit

Permalink
removed deprecated package
Browse files Browse the repository at this point in the history
  • Loading branch information
sri-vathsa committed Mar 31, 2021
1 parent ed10aed commit 455905f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ptypes/timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ func TimestampNow() *timestamppb.Timestamp {
// TimestampProto converts the time.Time to a google.protobuf.Timestamp proto.
// It returns an error if the resulting Timestamp is invalid.
//
// Deprecated: Call the timestamppb.New function instead.
func TimestampProto(t time.Time) (*timestamppb.Timestamp, error) {
ts := &timestamppb.Timestamp{
Seconds: t.Unix(),
Expand Down

0 comments on commit 455905f

Please sign in to comment.