summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tablePB.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tablePB.go b/tablePB.go
index 99102c1..b462613 100644
--- a/tablePB.go
+++ b/tablePB.go
@@ -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