package
0.0.0-20200321120002-dd2de08144c3
Repository: https://github.com/wuka1/docker.git
Documentation: pkg.go.dev
# Functions
DurationToSecondsString converts the specified duration to the number seconds it represents, formatted as a string.
GetTimestamp tries to parse given string as golang duration, then RFC3339 time and finally as a Unix timestamp.
ParseTimestamps returns seconds and nanoseconds from a timestamp that has the format "%d.%09d", time.Unix(), int64(time.Nanosecond())) if the incoming nanosecond portion is longer or shorter than 9 digits it is converted to nanoseconds.