Suggestion for API change: use time.Time instead of int64 in the exposed API. That would be more idiomatic.