dur

package module
v0.0.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 5 Imported by: 5

README

dur

duration helpers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timestamp added in v0.0.2

type Timestamp struct {
	HH  int
	MM  int
	SS  int
	MS  int
	Dur time.Duration
}

func New added in v0.0.22

func New(d time.Duration) (Timestamp, error)

func Parse

func Parse(e string) (Timestamp, error)

func (Timestamp) Cuestamp added in v0.0.2

func (d Timestamp) Cuestamp() string

func (Timestamp) HHMMSS added in v0.0.2

func (d Timestamp) HHMMSS() string

func (Timestamp) Hours added in v0.0.2

func (d Timestamp) Hours() string

func (Timestamp) MMSS added in v0.0.2

func (d Timestamp) MMSS() string

func (Timestamp) Min added in v0.0.2

func (d Timestamp) Min() string

func (Timestamp) RoundSecs added in v0.0.2

func (d Timestamp) RoundSecs() int

func (Timestamp) Secs added in v0.0.2

func (d Timestamp) Secs() string

func (Timestamp) String added in v0.0.2

func (d Timestamp) String() string

func (Timestamp) Timestamp added in v0.0.2

func (d Timestamp) Timestamp() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL