datestimes

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateString

func DateString() string

The function dateString returns the current date in the format "dd/mm/yy".

func DateTimeString

func DateTimeString() string

The dateTimeString function returns a string that combines the time and date strings.

func FormatDate

func FormatDate(t time.Time) string

formatDate returns a formatted date string based on the given time.Time value.

func FormatDuration

func FormatDuration(t time.Duration) string

func TimeAgo

func TimeAgo(t string) string

func TimeString

func TimeString() string

The timeString function returns the current time in the format "15:04:05".

func UnixDateToHuman

func UnixDateToHuman(unixTime int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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