package
0.0.18
Repository: https://github.com/jf-tech/go-corelib.git
Documentation: pkg.go.dev

# Functions

ConvertTZ converts a time.Time into a new time.Time in a timezone specified by tz.
NewOSClock returns a Clock interface implementation that uses time.Now.
NewTimedSlidingWindowI64 creates a new time-based sliding window for int64 value aggregation.
OverwriteTZ takes the literal values of y/m/d/h/m/s of a time.Time and uses them together with a supplied timezone to form a new time.Time, effectively "overwriting" the original time.Time's tz.
SmartParse parses a date time string and returns a time.Time and a tz flag indicates whether the date time string contains tz info.

# Structs

TimedSlidingWindowI64 offers a way to aggregate int64 values over a time-based sliding window.

# Interfaces

Clock tells the current time.