Mercurial > gemma
comparison pkg/imports/wp.go @ 4074:eb2f949ddfa2
Rename TimeGuesser to TimeParser.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 25 Jul 2019 15:08:11 +0200 |
parents | 4acbee65275d |
children | cb74aa69954e |
comparison
equal
deleted
inserted
replaced
4071:5867dcf8e93c | 4074:eb2f949ddfa2 |
---|---|
416 } | 416 } |
417 | 417 |
418 feedback.Info( | 418 feedback.Info( |
419 "Matching points to lines with a precision of %.4fm.", precision) | 419 "Matching points to lines with a precision of %.4fm.", precision) |
420 | 420 |
421 parseDate := misc.TimeGuesser([]string{"02.01.2006"}).Guess | 421 parseDate := misc.TimeParser([]string{"02.01.2006"}).Parse |
422 | 422 |
423 insertStmt, err := tx.PrepareContext(ctx, insertWaterwayProfileSQL) | 423 insertStmt, err := tx.PrepareContext(ctx, insertWaterwayProfileSQL) |
424 if err != nil { | 424 if err != nil { |
425 return nil, err | 425 return nil, err |
426 } | 426 } |