func (c timeC) Coerce(v interface{}, path []string) (interface{}, error) {
	if v == nil {
		return nil, error_{"string or time.Time", v, path}
	}
	var empty time.Time
	switch reflect.TypeOf(v).Kind() {
	case reflect.TypeOf(empty).Kind():
		return v, nil
	case reflect.String:
		vstr := reflect.ValueOf(v).String()
		if vstr == "" {
			return empty, nil
		}
		v, err := time.Parse(time.RFC3339Nano, vstr)
		if err != nil {
			return nil, parseError(path, "time", err)
		}
		return v, nil
	default:
		return nil, error_{"string or time.Time", v, path}
	}
}
// Coerce implements Checker Coerce method.
Coerce implements Checker Coerce method.
// Coerce implements Checker Coerce method .
func (c timeC) Coerce(v interface{}, path []string) (interface{}, error) {
	if v == nil {
		return nil, error_{"string or time.Time", v, path}
	}
	var empty time.Time
	switch reflect.TypeOf(v).Kind() {
	case reflect.TypeOf(empty).Kind():
		return v, nil
	case reflect.String:
		vstr := reflect.ValueOf(v).String()
		if vstr == "" {
			return empty, nil
		}
		v, err := time.Parse(time.RFC3339Nano, vstr)
		if err != nil {
			return nil, parseError(path, "time", err)
		}
		return v, nil
	default:
		return nil, error_{"string or time.Time", v, path}
	}
}
func ( c timeC ) Coerce ( v interface { } , path [ ] string ) ( interface { } , error ) { if v == nil { return nil , error_ { " " , v , path } } var empty time . Time switch reflect . TypeOf ( v ) . Kind ( ) { case reflect . TypeOf ( empty ) . Kind ( ) : return v , nil case reflect . String : vstr := reflect . ValueOf ( v ) . String ( ) if vstr == " " { return empty , nil } v , err := time . Parse ( time . RFC3339Nano , vstr ) if err != nil { return nil , parseError ( path , " " , err ) } return v , nil default : return nil , error_ { " " , v , path } } }
Coerce implements Checker Coerce method.
Coerce implements Checker Coerce method .