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