timeutils

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DateTimeMysql = "2006-01-02 15:04:05"
)

Functions

func FormatDateTime

func FormatDateTime(datetime time.Time) string

func IsSameDay

func IsSameDay(a time.Time, b time.Time) bool

func ParseDateTime

func ParseDateTime(datetime string) (time.Time, error)

func ParseDateTimeWithFormat

func ParseDateTimeWithFormat(format string, datetime string) (time.Time, error)

func WithDefaultDateTimeFormat

func WithDefaultDateTimeFormat(format string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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