Implement support for time.Duration