Skip to content

Commit

Permalink
Merge pull request #957 from lzf575/add-appendraw-for-datatime
Browse files Browse the repository at this point in the history
feat: col_datetime add appendraw method
  • Loading branch information
ernado authored Dec 27, 2024
2 parents 9a172e7 + dee3557 commit 0760493
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proto/col_datetime.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ func (c ColDateTime) Row(i int) time.Time {
return c.Data[i].Time().In(c.loc())
}

func (c *ColDateTime) AppendRaw(v DateTime) {
c.Data = append(c.Data, v)
}

func (c *ColDateTime) Append(v time.Time) {
c.Data = append(c.Data, ToDateTime(v))
}
Expand Down

0 comments on commit 0760493

Please sign in to comment.