time

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeUtil

type TimeUtil struct {
}

func (*TimeUtil) EpochMilli

func (dt *TimeUtil) EpochMilli() int64

EpochMilli 当前时间的时间戳(毫秒)

func (*TimeUtil) FormatDateTime

func (dt *TimeUtil) FormatDateTime(t time.Time) string

FormatDateTime 格式化给定时间 : yyyy-MM-dd HH:mm:ss

func (*TimeUtil) Now

func (dt *TimeUtil) Now() string

Now 当前时间的时间 : yyyy-MM-dd HH:mm:ss

func (*TimeUtil) NowMillis

func (dt *TimeUtil) NowMillis() int64

NowMillis 当前时间的时间戳(毫秒)

func (*TimeUtil) NowMillisStr

func (dt *TimeUtil) NowMillisStr() string

NowMillisStr 当前时间的时间戳(毫秒) - 字符串

func (*TimeUtil) NowSeconds

func (dt *TimeUtil) NowSeconds() int

NowSeconds 当前时间的时间戳(秒)

func (*TimeUtil) NowTime

func (dt *TimeUtil) NowTime() time.Time

NowTime 当前时间的时间 : time.Time

Jump to

Keyboard shortcuts

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