Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const Day + const Hour + const Minute + const Month + const Week + const Year + func DateTime(format string, datetime any) template.HTML + func GetExecutableModTime() time.Time + func MinutesToFriendly(minutes int, lang translation.Locale) string + func Set(now time.Time) + func TimeSince(then time.Time, lang translation.Locale) template.HTML + func TimeSincePro(then time.Time, lang translation.Locale) string + func TimeSinceUnix(then TimeStamp, lang translation.Locale) template.HTML + func Unset() + type TimeStamp int64 + func TimeStampNow() TimeStamp + func (ts TimeStamp) Add(seconds int64) TimeStamp + func (ts TimeStamp) AddDuration(interval time.Duration) TimeStamp + func (ts TimeStamp) AsLocalTime() time.Time + func (ts TimeStamp) AsTime() (tm time.Time) + func (ts TimeStamp) AsTimeInLocation(loc *time.Location) time.Time + func (ts TimeStamp) AsTimePtr() *time.Time + func (ts TimeStamp) AsTimePtrInLocation(loc *time.Location) *time.Time + func (ts TimeStamp) Format(f string) string + func (ts TimeStamp) FormatDate() string + func (ts TimeStamp) FormatInLocation(f string, loc *time.Location) string + func (ts TimeStamp) FormatLong() string + func (ts TimeStamp) FormatShort() string + func (ts TimeStamp) IsZero() bool + func (ts TimeStamp) Year() int + type TimeStampNano int64 + func TimeStampNanoNow() TimeStampNano + func (tsn TimeStampNano) AsTime() (tm time.Time) + func (tsn TimeStampNano) AsTimeInLocation(loc *time.Location) time.Time