mirror-nourybot/pkg/humanize/time.go
2021-10-14 02:27:01 +02:00

14 lines
227 B
Go

package humanize
import (
"time"
"github.com/dustin/go-humanize"
)
// HumanizeTime returns a more human readable
// time as a string for a given time.Time
func HumanizeTime(t time.Time) string {
return humanize.Time(t)
}