timeutil

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CSTLayout China Standard Time Layout
	CSTLayout = "2006-01-02 15:04:05"

	CSTMinuteLayout = "2006-01-02 15:04"

	CSTDayLayout = "2006-01-02"
)

Variables

This section is empty.

Functions

func CST

func CST() *time.Location

CST China Standard Time

func JST

func JST() *time.Location

JST Japan Standard Time

func NowInCST

func NowInCST() *time.Time

NowInCST return a time now in cst

func NowInJST

func NowInJST() *time.Time

NowInJST return a time now in jst

func RFC3339ToCSTLayout

func RFC3339ToCSTLayout(value string) (string, error)

RFC3339ToCSTLayout convert rfc3339 value to china time layout

Types

This section is empty.

Jump to

Keyboard shortcuts

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