timeutil

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CSTLayout = "2006-01-02 15:04:05"

CSTLayout China Standard Time Layout

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