time_ex

package
v0.0.0-...-489c00f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DistanceTwoTimes

func DistanceTwoTimes(strTimeFisrt, strTimeSecond string) int64

两个时间的差值

func GetCurrentTime

func GetCurrentTime() (strCurTime string)

获取系统时间(字符串形式)

func GetCurrentTimeStamp

func GetCurrentTimeStamp() (nCurrTimeStamp int64)

获取系统时间戳

func TimeStampToTimeStr

func TimeStampToTimeStr(nTimeStamp int64) (strTime string)

时间戳转时间

func TimeStrToTimeStamp

func TimeStrToTimeStamp(strTime string) (nTimeStamp int64)

时间转时间戳

Types

type TimeEx

type TimeEx struct {
	Year   int
	Month  time.Month
	Day    int
	Hour   int
	Minute int
	Second int
}

----------------------------------------------------------------------------------------------

func (*TimeEx) GetBJTime

func (tx *TimeEx) GetBJTime() time.Time

func (*TimeEx) TimeToTimeStr

func (tx *TimeEx) TimeToTimeStr(tTime time.Time) (strTime string)

Jump to

Keyboard shortcuts

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