Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTimeInSecondsDay ¶
func IsTimeInSecondsDay(timestamp time.Time, ss [2]SecondsInDay) bool
IsTimeInSecondsDay check if the timestamp is in range of the two secondsInDay timestamp
Types ¶
type Duration ¶
Duration is a alias of time.Duration which supports correct marshaling to YAML and JSON
func (Duration) MarshalJSON ¶
MarshalJSON marshals Duration
func (Duration) TimeDuration ¶
TimeDuration convert duration to time.Duration
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON unmarshals Duration
type SecondsInDay ¶
type SecondsInDay uint32
SecondsInDay show timestamp in second format in one day
func (SecondsInDay) MarshalJSON ¶
func (s SecondsInDay) MarshalJSON() ([]byte, error)
MarshalJSON translate secondsInDay struct data to string
func (SecondsInDay) String ¶
func (s SecondsInDay) String() string
String output secondsInDay in string format
func (*SecondsInDay) UnmarshalJSON ¶
func (s *SecondsInDay) UnmarshalJSON(d []byte) error
UnmarshalJSON translate string to secondsInDay struct
Click to show internal directories.
Click to hide internal directories.