microtime

package module
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 6 Imported by: 0

README

Go Reference

Documentation

Index

Constants

View Source
const (
	Nanosecond  = Duration(time.Nanosecond)
	Microsecond = Duration(time.Microsecond)
	Millisecond = Duration(time.Millisecond)
	Second      = Duration(time.Second)
	Minute      = Duration(time.Minute)
	Hour        = Duration(time.Hour)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration time.Duration

func (Duration) MarshalBinary

func (d Duration) MarshalBinary() (data []byte, err error)

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (Duration) RedisArg

func (d Duration) RedisArg() interface{}

func (*Duration) RedisScan

func (d *Duration) RedisScan(src interface{}) error

func (Duration) Round

func (d Duration) Round(m Duration) Duration

func (Duration) String

func (d Duration) String() string

func (*Duration) UnmarshalBinary

func (d *Duration) UnmarshalBinary(data []byte) error

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

func (*Duration) UnmarshalParam

func (d *Duration) UnmarshalParam(data string) error

type Time

type Time struct {
	time.Time
}

func FromString

func FromString(str string) (Time, error)

func Now

func Now() Time

func (Time) MarshalBinary

func (t Time) MarshalBinary() (data []byte, err error)

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) RedisArg

func (t Time) RedisArg() interface{}

func (*Time) RedisScan

func (t *Time) RedisScan(src interface{}) error

func (*Time) Scan

func (t *Time) Scan(src interface{}) error

func (Time) String

func (t Time) String() string

func (Time) Sub

func (t Time) Sub(u Time) Duration

func (*Time) UnmarshalBinary

func (t *Time) UnmarshalBinary(data []byte) error

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

func (*Time) UnmarshalParam

func (t *Time) UnmarshalParam(data string) error

func (Time) Value

func (t Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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