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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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