time

package
v0.0.0-...-fd55e90 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeZoneTime

func ChangeZoneTime(fromTimeStr, fromZone, toZone, layout string) (toTimeStr string, err error)

ChangeZoneTime 根据时区获取用户的当地时间 fromTimeStr 原来的时间,如 "2000-10-10 10:00:00" fromZone 原来的时区,如 "Asia/Shanghai" toZone 目标时区,如 "UTC" layout 时间输入/输出格式,如 "2006-01-02 15:04:05"

func LayoutFormat

func LayoutFormat() string

LayoutFormat 常规的用户时间格式

Types

This section is empty.

Jump to

Keyboard shortcuts

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