Documentation ¶
Index ¶
- func CopyPtr(t *time.Time) *time.Time
- func DifferenceStr(t1 *time.Time, t2 *time.Time) string
- func GetCurrentUTCDate() time.Time
- func LocalHourNow() string
- func LocalTimestamp(t *time.Time) string
- func LocalTimestampHuman(t *time.Time) string
- func MaxDuration(duration time.Duration, durations ...time.Duration) time.Duration
- func MicrosecsStr(t time.Time) string
- func MillisToTime(epochMillis int64) time.Time
- func MillisecsStr(t time.Time) string
- func MustParseDuration(str string) time.Duration
- func PtrsEqual(t1 *time.Time, t2 *time.Time) bool
- func SinceStr(t *time.Time) string
- func Timestamp(t time.Time) string
- func ToMillis(t time.Time) int64
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentUTCDate ¶ added in v0.35.0
func LocalHourNow ¶
func LocalHourNow() string
func LocalTimestamp ¶
func LocalTimestampHuman ¶
func MaxDuration ¶ added in v0.14.0
func MicrosecsStr ¶
func MillisToTime ¶ added in v0.8.0
func MillisecsStr ¶
func MustParseDuration ¶ added in v0.14.0
Types ¶
Click to show internal directories.
Click to hide internal directories.