timex

package module
v0.0.0-...-32eaf10 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package timex Date: 2023/4/10 13:06 Author: Amu Description:

Package timex Date: 2023/4/19 16:49 Author: Amu Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentDate

func CurrentDate(format string) string

CurrentDate 获取当前日期

func CurrentTime

func CurrentTime() string

CurrentTime 获取当前时间

func CurrentTimestamp

func CurrentTimestamp() int64

CurrentTimestamp 获取当前秒级时间戳

func Int64ToTime

func Int64ToTime(timestamp int64) time.Time

Int64ToTime 秒值时间戳转 time.Time

Types

type Ticker

type Ticker interface {
	Chan() <-chan time.Time
	Stop()
}

func NewTicker

func NewTicker(d time.Duration) Ticker

NewTicker returns a Ticker.

Jump to

Keyboard shortcuts

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