timeutil

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 3 Imported by: 0

README

timeutil

some time utils

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 added in v0.1.3

func RFC3339ToCSTLayout(value string) (string, error)

RFC3339ToCSTLayout convert rfc3339 value to china time layout

Types

This section is empty.