diff options
| -rw-r--r-- | tablePB.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,6 @@ package cobol import ( "fmt" "os" - "time" "go.wit.com/lib/protobuf/guipb" "go.wit.com/log" @@ -97,15 +96,16 @@ func getAnyCell(col *guipb.AnyCol, row int) (string, bool) { } return fmt.Sprintf("%d", finalInt), true - case guipb.ColAttr_DURATION: case guipb.ColAttr_TIME: + return "got to time", true + case guipb.ColAttr_DURATION: var sout string var tsProto timestamppb.Timestamp if err := anyVal.UnmarshalTo(&tsProto); err == nil { // It's a timestamp, now convert it back to a Go time.Time goTime := tsProto.AsTime() // fmt.Printf("Successfully unpacked timestamp: %v\n", goTime) - sout = FormatDuration(time.Since(goTime)) + sout = Since(goTime) return sout, true } return "", false |
