extime

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package extime 收集时间操作或计算的方法,以及有关不同国家地域的特殊日期方法。

根据一些习惯会创建一些常用的常量,简化程序书写,特别是格式化方面的。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInLocal

func ParseInLocal(layout, value string) (time.Time, error)

ParseInLocal 将时间解析到 time.Local 本地时区,用于解决使用 time.Parse 因缺失时区信息,默认被设置成 UTC,从而引起一系列时区问题。

Types

This section is empty.

Jump to

Keyboard shortcuts

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