timeutil

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(value time.Time) string

FormatDate returns the time in string format "yyyy-MM-dd"

func FormatDateTime

func FormatDateTime(value time.Time) string

FormatDateTime returns the time in string format "yyyy-MM-ddTHH:mm:ss"

func FormatTime

func FormatTime(value time.Time) string

FormatTime returns the time in string format "HH:mm:ss"

func GetTimeNow

func GetTimeNow() time.Time

GetTimeNow returns the current system time

func GetTimeNowUTC

func GetTimeNowUTC() time.Time

GetTimeNowUTC returns the UTC representation of the current system time

Types

This section is empty.

Jump to

Keyboard shortcuts

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