format

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCnOfMmDd

func GetCnOfMmDd(d time.Time) string

GetCnOfMmDd returns '01月02日' format date string.

func GetCnOfMmDdHhMm

func GetCnOfMmDdHhMm(d time.Time) string

GetCnOfMmDdHhMm returns '01月02日 15:04' format date string.

func GetCnOfMmDdHhMmSs

func GetCnOfMmDdHhMmSs(d time.Time) string

GetCnOfMmDdHhMmSs returns '01月02日 15:04:05' format date string.

func GetCnOfYyyyMm

func GetCnOfYyyyMm(d time.Time) string

GetCnOfYyyyMm returns '2006年01月' format date string.

func GetCnOfYyyyMmDd

func GetCnOfYyyyMmDd(d time.Time) string

GetCnOfYyyyMmDd returns '2006-01-02' format date string.

func GetCnOfYyyyMmDdHhMm

func GetCnOfYyyyMmDdHhMm(d time.Time) string

GetCnOfYyyyMmDdHhMm returns '2006年01月02日 15:04' format date string.

func GetCnOfYyyyMmDdHhMmSs

func GetCnOfYyyyMmDdHhMmSs(d time.Time) string

GetCnOfYyyyMmDdHhMmSs returns '2006年01月02日 15:04:05' format date string.

func GetCnOfYyyyMmDdHhMmSsSss

func GetCnOfYyyyMmDdHhMmSsSss(d time.Time) string

GetCnOfYyyyMmDdHhMmSsSss returns '2006年01月02日 15:04:05.000' format date string.

func GetCptOfYyyyMm

func GetCptOfYyyyMm(d time.Time) string

GetCptOfYyyyMm returns '200601' format date string.

func GetCptOfYyyyMmDd

func GetCptOfYyyyMmDd(d time.Time) string

GetCptOfYyyyMmDd returns '20060102' format date string.

func GetCptOfYyyyMmDdHh

func GetCptOfYyyyMmDdHh(d time.Time) string

GetCptOfYyyyMmDdHh returns '2006010215' format date string.

func GetCptOfYyyyMmDdHhMm

func GetCptOfYyyyMmDdHhMm(d time.Time) string

GetCptOfYyyyMmDdHhMm returns '200601021504' format date string.

func GetCptOfYyyyMmDdHhMmSs

func GetCptOfYyyyMmDdHhMmSs(d time.Time) string

GetCptOfYyyyMmDdHhMmSs returns '20060102150405' format date string.

func GetEnOfMmDd

func GetEnOfMmDd(d time.Time) string

GetEnOfMmDd returns '01/02' format date string.

func GetEnOfMmDdHhMm

func GetEnOfMmDdHhMm(d time.Time) string

GetEnOfMmDdHhMm returns '01/02 15:04' format date string.

func GetEnOfMmDdHhMmSs

func GetEnOfMmDdHhMmSs(d time.Time) string

GetEnOfMmDdHhMmSs returns '01/02 15:04:05' format date string.

func GetEnOfYyyyMm

func GetEnOfYyyyMm(d time.Time) string

GetEnOfYyyyMm returns '2006/01' format date string.

func GetEnOfYyyyMmDd

func GetEnOfYyyyMmDd(d time.Time) string

GetEnOfYyyyMmDd returns '2006/01/02' format date string.

func GetEnOfYyyyMmDdHhMm

func GetEnOfYyyyMmDdHhMm(d time.Time) string

GetEnOfYyyyMmDdHhMm returns '2006/01/02 15:04' format date string.

func GetEnOfYyyyMmDdHhMmSs

func GetEnOfYyyyMmDdHhMmSs(d time.Time) string

GetEnOfYyyyMmDdHhMmSs returns '2006/01/02 15:04:05' format date string.

func GetEnOfYyyyMmDdHhMmSsSss

func GetEnOfYyyyMmDdHhMmSsSss(d time.Time) string

GetEnOfYyyyMmDdHhMmSsSss returns '2006/01/02 15:04:05.000' format date string.

func GetMmDd

func GetMmDd(d time.Time) string

GetMmDd returns '01-02' format date string.

func GetMmDdHhMm

func GetMmDdHhMm(d time.Time) string

GetMmDdHhMm returns '01-02 15:04' format date string.

func GetMmDdHhMmSs

func GetMmDdHhMmSs(d time.Time) string

GetMmDdHhMmSs returns '01-02 15:04:05' format date string.

func GetMmDdHhMmSsSss

func GetMmDdHhMmSsSss(d time.Time) string

GetMmDdHhMmSsSss returns '01-02 15:04:05.000' format date string.

func GetYyyyMm

func GetYyyyMm(d time.Time) string

GetYyyyMm returns '2006-01' format date string.

func GetYyyyMmDd

func GetYyyyMmDd(d time.Time) string

GetYyyyMmDd returns '2006-01-02' format date string.

func GetYyyyMmDdHhMm

func GetYyyyMmDdHhMm(d time.Time) string

GetYyyyMmDdHhMm returns '2006-01-02 15:04' format date string.

func GetYyyyMmDdHhMmSs

func GetYyyyMmDdHhMmSs(d time.Time) string

GetYyyyMmDdHhMmSs returns '2006-01-02 15:04:05' format date string.

func GetYyyyMmDdHhMmSsSss

func GetYyyyMmDdHhMmSsSss(d time.Time) string

GetYyyyMmDdHhMmSsSss returns '2006-01-02 15:04:05.000' format date string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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