gotimetools

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateFormat

func DateFormat(timestamp int) string

时间戳转年月日 时分秒

func DateFormatYmd

func DateFormatYmd(timestamp int) string

时间戳转年月日

func DateNowFormat

func DateNowFormat() time.Time

获取年月日时分秒(time类型)

func DateNowFormatStr

func DateNowFormatStr() string

获取年月日时分秒(字符串类型)

func DateUnix

func DateUnix() int

时间戳

func DateWeek

func DateWeek() int

获取第几周

func DateYMD

func DateYMD() (int, int, int)

获取年、月、日

func DateYmFormat

func DateYmFormat() string

获取当前年月

func DateYmdFormat

func DateYmdFormat() string

获取年月日

func DateYmdInts

func DateYmdInts() (int, int, int)

获取日期的年月日

func GetNowDateStr

func GetNowDateStr(layout string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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