mirror-nourybot/pkg/humanize/time.go

14 lines
227 B
Go
Raw Normal View History

2021-10-14 02:27:01 +02:00
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)
}