time

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MicroSec2LocalStr

func MicroSec2LocalStr(msec int64) string

MicroSec2LocalStr 毫秒级时间戳转东八区字符串

func MicroSec2LocalStrWithLay

func MicroSec2LocalStrWithLay(msec int64, layout string) string

MicroSec2LocalStrWithLay 毫秒级时间戳转东八区字符串

func MicroSec2Time

func MicroSec2Time(msec int64) time.Time

MicroSec2Time 微秒级时间戳转时间对象

func MicroSec2UTCStr

func MicroSec2UTCStr(msec int64) string

MicroSec2UTCStr 毫秒级时间戳转UTC时区字符串

func MicroSec2UTCStrWithLay

func MicroSec2UTCStrWithLay(msec int64, layout string) string

MicroSec2UTCStrWithLay 毫秒级时间戳转UTC时区字符串

func MillSec2LocalStr

func MillSec2LocalStr(msec int64) string

MillSec2LocalStr 毫秒级时间戳转东八区字符串

func MillSec2LocalStrWithLay

func MillSec2LocalStrWithLay(msec int64, layout string) string

MillSec2LocalStrWithLay 毫秒级时间戳转东八区字符串

func MillSec2Time

func MillSec2Time(msec int64) time.Time

MillSec2Time 毫秒级时间戳转时间对象

func MillSec2UTCStr

func MillSec2UTCStr(msec int64) string

MillSec2UTCStr 毫秒级时间戳转UTC时区字符串

func MillSec2UTCStrWithLay

func MillSec2UTCStrWithLay(msec int64, layout string) string

MillSec2UTCStrWithLay 毫秒级时间戳转UTC时区字符串

func RawMicroSec2Str

func RawMicroSec2Str(msec int64, layout string, loc *time.Location) string

RawMicroSec2Str 毫秒级时间戳转字符串

func RawMillSec2Str

func RawMillSec2Str(sec int64, layout string, loc *time.Location) string

RawMillSec2Str 毫秒级时间戳转字符串

func RawSec2Str

func RawSec2Str(sec int64, layout string, loc *time.Location) string

RawSec2Str 秒级时间戳转字符串

func Sec2LocalStr

func Sec2LocalStr(sec int64) string

Sec2LocalStr 秒级时间戳转东八区字符串

func Sec2LocalStrWithLay

func Sec2LocalStrWithLay(sec int64, layout string) string

Sec2LocalStrWithLay 秒级时间戳转东八区字符串

func Sec2Time

func Sec2Time(sec int64) time.Time

Sec2Time 秒级时间戳转时间对象

func Sec2UTCStr

func Sec2UTCStr(sec int64) string

Sec2UTCStr 秒级时间戳转UTC时区字符串

func Sec2UTCStrWithLay

func Sec2UTCStrWithLay(sec int64, layout string) string

Sec2UTCStrWithLay 秒级时间戳转UTC时区字符串

func Str2Time

func Str2Time(str string) (time.Time, error)

Str2Time 字符串转time

func Str2TimeWithLay

func Str2TimeWithLay(str, layout string) (time.Time, error)

Str2TimeWithLay 字符串转time

func Time2LocalStr

func Time2LocalStr(t time.Time) string

func Time2LocalStrWithLay

func Time2LocalStrWithLay(t time.Time, layout string) string

func Time2Str

func Time2Str(t time.Time, layout string, loc *time.Location) string

func Time2UTCStr

func Time2UTCStr(t time.Time) string

func Time2UTCStrWithLay

func Time2UTCStrWithLay(t time.Time, layout string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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