Documentation ¶
Index ¶
- func AddDays(t time.Time, n int) time.Time
- func AddHours(t time.Time, n int) time.Time
- func AddMonths(t time.Time, n int) time.Time
- func DiffEqual(d time.Duration, t0 time.Time, ts ...time.Time) bool
- func DurationAbs(d time.Duration) time.Duration
- func Pointer(v time.Time) *time.Time
- func TimeOrDefault(v *time.Time, defaultVal time.Time) *time.Time
- func TruncEqual(d time.Duration, t0 time.Time, ts ...time.Time) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationAbs ¶
DurationAbs returns the absolute (positive) value of a time.Duration.
func Pointer ¶
Pointer returns a pointer to the given time.Time. NOTE: this method is deprecated. Use helpy.Pointer instead.
func TimeOrDefault ¶
TimeOrDefault returns time.Time if it is not nil, and a pointer to defaultVal otherwise. NOTE: this method is deprecated. Use helpy.DerefOrValue instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.