Documentation
¶
Index ¶
- func Duration(dur time.Duration) (format string)
- func InBetweenInt(i, min, max int) bool
- func InBetweenInt64(i, min, max int64) bool
- func InterfaceToInt(data interface{}) (val int)
- func TimeStringDateOnly(dur time.Time) (format string)
- func TimeStringTimeOnly(dur time.Time) (format string)
- func TimeStringWitLongDate(dur time.Time) (format string)
- func TimeStringWithDate(dur time.Time) (format string)
- func TimeToString(s time.Time) (ts string)
- func ToFixed(num float64, precision int) float64
- func UnixTime(t int64) (ts time.Time)
- type DurationUnit
- type TimeString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Duration ¶
Duration - convert golang time duration to string format DD:HH:MM:SS
func TimeStringDateOnly ¶
TimeStringDateOnly -
func TimeStringTimeOnly ¶
TimeStringTimeOnly -
func TimeStringWitLongDate ¶
TimeStringWitLongDate -
func TimeStringWithDate ¶
TimeStringWithDate -
Types ¶
type DurationUnit ¶
DurationUnit -
type TimeString ¶
TimeString -
func (*TimeString) WithLongDate ¶
func (cc *TimeString) WithLongDate(sp, sp2 string) *TimeString
WithLongDate -
func (*TimeString) WithMilliSecond ¶
func (cc *TimeString) WithMilliSecond() *TimeString
WithMilliSecond -
Click to show internal directories.
Click to hide internal directories.