From e4477d94c6a1e7fd3c4b32f0078b8593398cd127 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 03:50:11 -0500 Subject: kinda --- humanFormat.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/humanFormat.go b/humanFormat.go index cf1f907..ac195d9 100644 --- a/humanFormat.go +++ b/humanFormat.go @@ -5,6 +5,27 @@ import ( "time" ) +/* + etimef := func(e *forgepb.Set) string { + etime := e.Etime.AsTime() + s := etime.Format("2006/01/02 15:04") + if strings.HasPrefix(s, "1970/") { + // just show a blank if it's not set + return "" + } + return s + } + t.AddStringFunc("etime", etimef) +*/ + +/* + ctimef := func(p *forgepb.Set) string { + ctime := p.Ctime.AsTime() + return ctime.Format("2006/01/02 15:04") + } +} +*/ + // This isn't for the marketing department // so this isn't going to use 'MiB' and 'GiB' func HumanFormatBytes(b int) string { -- cgit v1.2.3