timeHelper

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDateFormat

func CheckDateFormat(date string) bool

检查日期格式

func CheckDateTimeFormat

func CheckDateTimeFormat(dateTime string) bool

检查时间格式

func CurrentTimeH

func CurrentTimeH() string

CurrentTimeH 获取时

func CurrentTimeHI

func CurrentTimeHI() string

CurrentTimeHI 获取时分

func CurrentTimeHIS

func CurrentTimeHIS() string

CurrentTimeHIS 获取时分秒

func CurrentTimeYMD

func CurrentTimeYMD() string

CurrentTimeYMD 获取年月日

func CurrentTimeYMDHIS

func CurrentTimeYMDHIS() string

CurrentTimeYMDHIS 获取年月日时分秒

func FormatTimeInt64YMGHIS

func FormatTimeInt64YMGHIS(timestamp int64) string

func FormatTimeYMGHIS

func FormatTimeYMGHIS(timestamp time.Time) string

FormatTimeYMGHIS 获取指定时间戳的年月日时分秒

func FormatYMDHIS

func FormatYMDHIS(timing *time.Time) string

func GetCurrentTime

func GetCurrentTime() *time.Time

func GetCurrentYMDHIS

func GetCurrentYMDHIS() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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