change to use "time.Duration" and "time.Time".

I changed to time.Duraton or time.Time from int64, as represents type time.

thank you.