Skip to content

Commit

Permalink
Remove deprecated pdata.TimestampFromTime. Closes: #3925 (#3935)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-feld authored Aug 31, 2021
1 parent 9f5261f commit 4ecdfce
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions model/pdata/timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ func NewTimestampFromTime(t time.Time) Timestamp {
return Timestamp(uint64(t.UnixNano()))
}

// TimestampFromTime constructs a new Timestamp from the provided time.Time.
// Deprecated: use NewTimestampFromTime instead.
func TimestampFromTime(t time.Time) Timestamp {
return Timestamp(uint64(t.UnixNano()))
}

// AsTime converts this to a time.Time.
func (ts Timestamp) AsTime() time.Time {
return time.Unix(0, int64(ts)).UTC()
Expand Down

0 comments on commit 4ecdfce

Please sign in to comment.