Documentation ¶ Index ¶ func ForNow(t time.Time) string func String(t, now time.Time) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ForNow ¶ func ForNow(t time.Time) string ForNow returns a human friendly string for describing a time point t relative to the current time. func String ¶ func String(t, now time.Time) string String returns a human friendly string for describing a time point t relative to the time point of now. When calculating time differences, it uses the time zone of the time point of now. Types ¶ This section is empty. Source Files ¶ View all Source files moment.go Click to show internal directories. Click to hide internal directories.