diff options
Diffstat (limited to 'humanFormat.go')
| -rw-r--r-- | humanFormat.go | 21 |
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 { |
