Skip to content

Commit

Permalink
feat: coldatetime add appendraw method
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Dec 27, 2024
1 parent 9a172e7 commit 40742eb
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 40742eb

Please sign in to comment.