diff options
| -rw-r--r-- | formatTime.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/formatTime.go b/formatTime.go index 23cc5d1..6956ecc 100644 --- a/formatTime.go +++ b/formatTime.go @@ -18,6 +18,10 @@ func FormatTime(t time.Time) string { func FormatTimeLocal(t time.Time) string { localTime := t.Local() s := localTime.Format("2006/01/02 15:04:03") + now := time.Now() + if now.Before(t) { + return s + " (future)" + } dur := time.Since(t) //always time, two spaces, (duration) return s + " (" + FormatDuration(dur) + ")" |
