summaryrefslogtreecommitdiff
path: root/since.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-11 09:25:56 -0500
committerJeff Carr <[email protected]>2025-10-11 09:50:17 -0500
commita32b88646c02fd785687cd2a498b56410e62b2cd (patch)
tree528d711fd27831613df1e5e979e653df5ee6ed15 /since.go
parent63e3a8382583af1d96da91295616df66fcf25dc4 (diff)
pretty good 5 char duration.v0.0.18
Diffstat (limited to 'since.go')
-rw-r--r--since.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/since.go b/since.go
index 22c150e..48f8575 100644
--- a/since.go
+++ b/since.go
@@ -7,27 +7,6 @@ import (
"google.golang.org/protobuf/types/known/timestamppb"
)
-/*
- 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")
- }
-}
-*/
-
// returns a human readable duration
func Since(aLongTimeAgo any) string {
s, err := SinceCheck(aLongTimeAgo)