Documentation ¶
Index ¶
- Constants
- func DurationToHour(d time.Duration) int64
- func DurationToMin(d time.Duration) int64
- func DurationToSecond(d time.Duration) int64
- func DurationToTime(d time.Duration) (hour, min, sec int64)
- func HourToDuration(hour int64) time.Duration
- func MinToDuration(min int64) time.Duration
- func SecToDuration(sec int64) time.Duration
- func TimeToDuration(hour, min, sec int64) time.Duration
Constants ¶
View Source
const ( Nanosecond int64 = 1 Microsecond = 1000 * Nanosecond Millisecond = 1000 * Microsecond Second = 1000 * Millisecond Minute = 60 * Second Hour = 60 * Minute )
Variables ¶
This section is empty.
Functions ¶
func DurationToHour ¶
func DurationToMin ¶
func DurationToSecond ¶
func DurationToTime ¶
func HourToDuration ¶
func MinToDuration ¶
func SecToDuration ¶
func TimeToDuration ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.