date

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datetime

type Datetime interface {
	// FormatDate is a function to format a received date according to the custom parameter 'format'
	FormatDate(date string, format string) (string, error)

	// FormatDatetime is a function to format a received date according to the custom parameter 'format'
	FormatDatetime(date time.Time, format string) string

	// DatetimeNow is a function to get current date and time and format according to custom parameter 'format'
	GetDateNow(format string) string
}

func NewDatetime

func NewDatetime() Datetime

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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