time

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentMillisecond

func CurrentMillisecond() int64

CurrentMillisecond 获取低精度的微秒时间

func Int64Time2String

func Int64Time2String(t int64) string

Int64Time2String Convert time stamp of Int64 to string time

func Time2String

func Time2String(t time.Time) string

Time2String Convert time.Time to string time

Types

type Duration

type Duration time.Duration

Duration duration alias

func (Duration) MarshalJSON

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

MarshalJSON marshal duration to json

func (*Duration) UnmarshalJSON

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

UnmarshalJSON unmarshal json text to struct

Jump to

Keyboard shortcuts

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