xtime

package
v0.0.0-...-7149754 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatUnix

func FormatUnix(date time.Time) string

FormatUnix formats the time.Time to unix date string

func FormatUnixInt

func FormatUnixInt(unix int64) string

FormatUnixInt formats the int timestamp to unix date string

func NowAfter

func NowAfter(unix time.Duration) string

NowAfter returns a unix date string from now plus the duration

func Seconds

func Seconds(seconds int64) time.Duration

Seconds creates a time.Duration based on the seconds parameter

Types

This section is empty.

Jump to

Keyboard shortcuts

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