mirror-nourybot/pkg/humanize/time.go

13 lines
202 B
Go
Raw Permalink Normal View History

2023-08-08 02:37:37 +02:00
package humanize
import (
"time"
humanize "github.com/dustin/go-humanize"
)
2024-02-28 11:53:39 +01:00
// Time returns the humanized time for a supplied time value.
2023-08-08 02:37:37 +02:00
func Time(t time.Time) string {
return humanize.Time(t)
}