timeutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package timeutil @Author Clover @Data 2024/7/21 下午11:39:00 @Desc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNowDate

func GetNowDate() string

GetNowDate 获取当前年月日

func GetTimeStamp

func GetTimeStamp() string

GetTimeStamp 获取 10位 时间戳

func GetTimeUnix

func GetTimeUnix() float64

func IsBeforeThatDay

func IsBeforeThatDay(oDateStr string, offSetDay int) bool

IsBeforeThatDay 是否早于 (现在日期 - day)

func IsDateValid

func IsDateValid(dateStr string) bool

IsDateValid 判断字符串是否符合"YYYY-MM-DD"格式

Types

This section is empty.

Jump to

Keyboard shortcuts

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