MCPcopy Index your code
hub / github.com/git-bug/git-bug / FormatTimeRel

Method FormatTimeRel

entities/bug/comment.go:43–45  ·  view source on GitHub ↗

FormatTimeRel format the unixTime of the comment for human consumption

()

Source from the content-addressed store, hash-verified

41
42// FormatTimeRel format the unixTime of the comment for human consumption
43func (c Comment) FormatTimeRel() string {
44 return humanize.Time(c.unixTime.Time())
45}
46
47func (c Comment) FormatTime() string {
48 return c.unixTime.Time().Format("Mon Jan 2 15:04:05 2006 -0700")

Callers

nothing calls this directly

Calls 1

TimeMethod · 0.65

Tested by

no test coverage detected