dateutil

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginTime

func BeginTime(param time.Time) time.Time

func ConvertToStr

func ConvertToStr(dateTime time.Time, flag int) string

func ConvertToStrByPrt

func ConvertToStrByPrt(dateTime *time.Time, flag int) string

ConvertToStrByPrt @Description: @param dateTime @param flag @return string

func EndTimeNum

func EndTimeNum(param time.Time) time.Time

func GetDistanceOfTwoDate

func GetDistanceOfTwoDate(timeStart, timeEnd time.Time) int64

GetDistanceOfTwoDate @param timeStart @param timeEnd @return int64

func ParseStrToTime added in v1.2.9

func ParseStrToTime(timeStr, location string, flag int) (time.Time, error)

func ParseStrToTimestamp added in v1.2.10

func ParseStrToTimestamp(timeStr, location string, flag int) (int64, error)

func ParseTimestampToTime added in v1.2.6

func ParseTimestampToTime(timestamp int64, location string) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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