pcstime

package
v3.5.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pcstime 时间工具包

Index

Constants

This section is empty.

Variables

View Source
var (
	// CSTLocation 东八区时区
	CSTLocation = time.FixedZone("CST", 8*3600)
)

Functions

func BeijingTimeOption

func BeijingTimeOption(get string) string

BeijingTimeOption 根据给定的 get 返回时间格式.

get:        时间格式

"Refer":    2017-7-21 12:02:32.000
"printLog": 2017-7-21_12:02:32
"day":      21
"ymd":      2017-7-21
"hour":     12
默认时间戳:   1500609752

func FormatTime

func FormatTime(t int64) string

FormatTime 将 Unix 时间戳, 转换为字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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