mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
14 lines
227 B
Go
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)
|
||
|
}
|