time

package
v0.0.0-...-6d513be Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentTimestampMillis

func CurrentTimestampMillis() int64

CurrentTimestampMillis 返回当前时间的毫秒级时间戳

func FormatTimeSince

func FormatTimeSince(timestamp int64) string

func FormatTimestamp

func FormatTimestamp(timestamp int64) string

FormatTimestamp 格式化时间戳为字符串,如果为0则返回空字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳