datetime

package
v0.0.0-...-b13fe04 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDate

func GetDate() string

GetDate 2006-01-02

func GetDateClose

func GetDateClose() string

GetDateClose 20060102

func GetDateTime

func GetDateTime() string

GetDateTime 2006-01-02 15:04:05

func GetDateTimeClose

func GetDateTimeClose() string

GetDateTimeClose 20060102150405

func GetMonth

func GetMonth() string

GetMonth 2006-01

func GetTimestampMicro

func GetTimestampMicro() string

GetTimestampMicro 微妙时间戳 1652854450879582

func GetTimestampMilli

func GetTimestampMilli() string

GetTimestampMilli 毫秒时间戳 1652854450879

func GetTimestampNano

func GetTimestampNano() string

GetTimestampNano 纳秒时间戳 1652854450879612000

func ParseDate

func ParseDate(t string) (time.Time, error)

ParseDate 2006-01-02

func ParseDateClose

func ParseDateClose(t string) (time.Time, error)

ParseDateClose 20060102

func ParseDateTime

func ParseDateTime(t string) (time.Time, error)

ParseDateTime 2006-01-02 15:04:05

func ParseDateTimeClose

func ParseDateTimeClose(t string) (time.Time, error)

ParseDateTimeClose 20060102150405

func ParseTime

func ParseTime(t string) (time.Time, error)

ParseTime 15:04:05

func ToDate

func ToDate(t time.Time) string

ToDate 2006-01-02

func ToDateChs

func ToDateChs(t time.Time) string

ToDateChs 2006年01月02日

func ToDateClose

func ToDateClose(t time.Time) string

ToDateClose 20060102

func ToDateHourChs

func ToDateHourChs(t time.Time) string

ToDateHourChs 2006年01月02日15时

func ToDateMinChs

func ToDateMinChs(t time.Time) string

ToDateMinChs 2006年01月02日15时04分

func ToDateTime

func ToDateTime(t time.Time) string

ToDateTime 2006-01-02 15:04:05

func ToDateTimeChs

func ToDateTimeChs(t time.Time) string

ToDateTimeChs 2006年01月02日15时04分05秒

func ToDateTimeClose

func ToDateTimeClose(t time.Time) string

ToDateTimeClose 20060102150405

func ToMicro

func ToMicro(t time.Time) string

ToMicro 2006-01-02 15:04:05.999999

func ToMilli

func ToMilli(t time.Time) string

ToMilli 2006-01-02 15:04:05.999

func ToMinChs

func ToMinChs(t time.Time) string

ToMinChs 15时04分

func ToMonth

func ToMonth(t time.Time) string

ToMonth 2006-01

func ToMonthChs

func ToMonthChs(t time.Time) string

ToMonthChs 2006年01月

func ToMonthClose

func ToMonthClose(t time.Time) string

ToMonthClose 200601

func ToTime

func ToTime(t time.Time) string

ToTime 15:04:05

func ToTimeChs

func ToTimeChs(t time.Time) string

ToTimeChs 15时04分05秒

func ToTimeClose

func ToTimeClose(t time.Time) string

ToTimeClose 150405

func ToYearChs

func ToYearChs(t time.Time) string

ToYearChs 2006年

Types

This section is empty.

Jump to

Keyboard shortcuts

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