github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/libkb/reset.go (about) 1 package libkb 2 3 import ( 4 "fmt" 5 "time" 6 7 "github.com/keybase/client/go/kbtime" 8 ) 9 10 func HumanizeResetTime(t time.Time) string { 11 stamp := t.Local().Format("on Monday, 2 January 2006 at 15:04 MST") 12 until := kbtime.RelTime(t, time.Now(), "ago ", "") 13 return fmt.Sprintf("in %s(%s)", until, stamp) 14 }