utime

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixedZone added in v0.2.55

func FixedZone(offset time.Duration) *time.Location

func ParseDuration

func ParseDuration(s string) (r time.Duration, err error)

func PrettyTruncate added in v0.3.31

func PrettyTruncate(t time.Duration) time.Duration

func SetLocation added in v0.5.8

func SetLocation(v time.Time, loc *time.Location) time.Time

func TimeToDuration

func TimeToDuration(t time.Time) time.Duration

Types

type Stopwatch added in v0.3.33

type Stopwatch struct {
	// contains filtered or unexported fields
}

func NewStopwatch added in v0.3.33

func NewStopwatch() *Stopwatch

func (*Stopwatch) PrettyTime added in v0.3.33

func (o *Stopwatch) PrettyTime() time.Duration

func (*Stopwatch) Reset added in v0.3.33

func (o *Stopwatch) Reset()

func (Stopwatch) String added in v0.3.33

func (o Stopwatch) String() string

func (*Stopwatch) Time added in v0.3.33

func (o *Stopwatch) Time() time.Duration

Jump to

Keyboard shortcuts

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