datetime

package
v0.0.0-...-3f8f567 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date() string

Date 获取当前时间日期(格式:2006-01-02)

func DateTime

func DateTime() string

DateTime 获取当前时间(格式:2006-01-02)

func Now

func Now() time.Time

Now 获取当前时间(默认北京时间)

func Parse

func Parse(str string) (time.Time, error)

Parse 时间格式格式解析函数(兼容大部分时间字符串格式,对中文不太友好)

func Time

func Time() string

Time 获取当前时间时间(格式:15:04:05)

func Timestamp

func Timestamp() int64

Timestamp 获取当前时间戳

Types

This section is empty.

Jump to

Keyboard shortcuts

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