You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// AvroTime truncates a go time.Time to the value that gets stored the avro logicalTime (which has a granularity of milliseconds while go has nanoseconds)
// It also makes sure that the time is expressed in UTC()
func AvroTime(t time.Time) time.Time {
return t.Truncate(time.Millisecond).UTC()
}
// AvroDate truncates a go time.Time to the value that gets stored the avro logicalDate
// It also makes sure that the time is expressed in UTC()