summaryrefslogtreecommitdiff
path: root/humanFormat.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 03:50:11 -0500
committerJeff Carr <[email protected]>2025-10-07 03:50:11 -0500
commite4477d94c6a1e7fd3c4b32f0078b8593398cd127 (patch)
tree2bd6eb168af88f59b54ac2b3b745e5697f75f8aa /humanFormat.go
parentc759867d2478da317b3a90fabee10a4ae2cd1008 (diff)
kindav0.0.9
Diffstat (limited to 'humanFormat.go')
-rw-r--r--humanFormat.go21
1 files changed, 21 insertions, 0 deletions
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 {