date

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NOW   = presetString("now")
	TODAY = presetString("today")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InputFormatter

type InputFormatter interface {
	ToTime() (time.Time, error)
	ToTimeStruct(t time.Time) TimeStruct
}

InputFormatter InputFormatter

func NewInputFormatter

func NewInputFormatter(input string, option string) InputFormatter

NewInputFormatter creates a new input formatter instance

type TimeStruct

type TimeStruct struct {
	Value          string
	Unixtime       int64
	UnixtimeMillis int64
	DateTime       string
	LocalDateTime  string
}

TimeStruct is a struct

Jump to

Keyboard shortcuts

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