Documentation ¶
Index ¶
Constants ¶
View Source
const ( Day = 24 * time.Hour Month = 30 * Day Year = 12 * Month )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Durations ¶
func (Durations) MarshalLogArray ¶
func (d Durations) MarshalLogArray(enc zapcore.ArrayEncoder) error
type Frame ¶
Frame represents a period of time.
func GenerateFrames ¶
GenerateFrames generates time frames.
func (Frame) ToDurationString ¶
ToDurationString converts time frame to duration string.
func (Frame) ToUnixString ¶
ToUnixString converts time frame to unix string.
Click to show internal directories.
Click to hide internal directories.