offset

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

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

Time 带有偏移量的时间

func NewTime

func NewTime(offset time.Duration) *Time

func (*Time) Now

func (slf *Time) Now() time.Time

func (*Time) SetOffset

func (slf *Time) SetOffset(offset time.Duration)

func (*Time) Since

func (slf *Time) Since(t time.Time) time.Duration

Jump to

Keyboard shortcuts

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