diff options
| author | Jeff Carr <[email protected]> | 2025-10-11 09:25:56 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-11 09:50:17 -0500 |
| commit | a32b88646c02fd785687cd2a498b56410e62b2cd (patch) | |
| tree | 528d711fd27831613df1e5e979e653df5ee6ed15 /since.go | |
| parent | 63e3a8382583af1d96da91295616df66fcf25dc4 (diff) | |
pretty good 5 char duration.v0.0.18
Diffstat (limited to 'since.go')
| -rw-r--r-- | since.go | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -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) |
