gtime

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecondsPerMinute 定义每分钟的秒数
	SecondsPerMinute = 60
	// SecondsPerHour 定义每小时的秒数
	SecondsPerHour = SecondsPerMinute * 60
	// SecondsPerDay 定义每天的秒数
	SecondsPerDay = SecondsPerHour * 24
)

Variables

This section is empty.

Functions

func ResolveTime

func ResolveTime(seconds int) (day int, hour int, minute int)

ResolveTime 将传入的“秒”解析为3种时间单位

func ResolveTimeSecond

func ResolveTimeSecond(seconds int) string

ResolveTimeSecond 将传入的“秒”解析时间单位

Types

This section is empty.

Jump to

Keyboard shortcuts

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