Documentation
¶
Index ¶
- Constants
- func Format(format Stamp, d time.Duration) (string, error)
- func FormatDuration(format Stamp, times ...int) (string, error)
- func FormatStamp(format Stamp, times ...int) (string, error)
- func Parse(format Stamp, dur string) (time.Duration, error)
- func SplitDurString(format Stamp, dur string) ([]int, error)
- func SplitTimestamp(format Stamp, dur string) ([]int, error)
- type Stamp
- func (ts Stamp) DurFmt() string
- func (ts Stamp) Format(d time.Duration) (string, error)
- func (ts Stamp) Join(times ...int) (time.Duration, error)
- func (ts Stamp) Parse(dur string) (time.Duration, error)
- func (ts Stamp) ScanFmt() string
- func (ts Stamp) Split(t string) ([]int, error)
- func (ts Stamp) StampFmt() string
Constants ¶
View Source
const ( DurHH = "%vh" DurMM = "%vm" DurSS = "%vs" DurMMSS = "%vm%vs" DurHHMMSS = "%vh%vm%vs" DurHHMMSSsss = "%vh%vm%v.%vs" DurCuestamp = "%vm%vs" DurTimestamp = "%vh%vm%vs" DurFullStamp = "%vh%vm%v.%vs" )
View Source
const ( ScanHH = "%d" ScanMM = "%d" ScanSS = "%d" ScanMMSS = "%d:%d" ScanHHMMSS = "%d:%d:%d" ScanHHMMSSsss = "%d:%d:%d.%d" ScanCuestamp = "%d:%d" ScanTimestamp = "%d:%d:%d" ScanFullStamp = "%d:%d:%d.%d" )
View Source
const ( StampHH = "%02v" StampMM = "%02v" StampSS = "%02v" StampMMSS = "%02v:%02v" StampHHMMSS = "%02v:%02v:%02v" StampHHMMSSsss = "%02v:%02v:%02v.%03v" StampCuestamp = "%02v:%02v" StampTimestamp = "%02v:%02v:%02v" StampFullStamp = "%02v:%02v:%02v.%03v" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.