diff options
| author | Jeff Carr <[email protected]> | 2025-10-14 05:00:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-14 05:00:03 -0500 |
| commit | 92e9b066f424c8e8055c01365bbd5e45e3c4f1b4 (patch) | |
| tree | a187651e7d824474567dba402b71e69d37f0af2b | |
| parent | a63a82e78a047c8dde14f106117b3ce88f209775 (diff) | |
attempt more time detection
| -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 |
