package utils import "time" func NanosToMillis(timestamp int64) int64 { return timestamp * (int64(time.Nanosecond) / int64(time.Millisecond)) }