datetime

package module
v0.0.0-...-fc633b5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Days    = "days"
	Hours   = "hours"
	Mins    = "mins"
	Seconds = "seconds"
)
View Source
const DateFormatDefault = "2006-01-02-07:00"
View Source
const DateTimeFormatDefault string = "2006-01-02T15:04:05-07:00"
View Source
const TimeFormatDefault string = "15:04:05-07:00"

Variables

This section is empty.

Functions

func FormatDateWithRFC3339

func FormatDateWithRFC3339(t time.Time) string

Types

type CurrentDate

type CurrentDate struct {
}

func (*CurrentDate) Eval

func (s *CurrentDate) Eval(d ...interface{}) (interface{}, error)

func (*CurrentDate) Name

func (s *CurrentDate) Name() string

func (*CurrentDate) Sig

func (s *CurrentDate) Sig() (paramTypes []data.Type, isVariadic bool)

type CurrentDatetime

type CurrentDatetime struct {
}

func (*CurrentDatetime) Eval

func (s *CurrentDatetime) Eval(d ...interface{}) (interface{}, error)

func (*CurrentDatetime) GetCategory

func (s *CurrentDatetime) GetCategory() string

func (*CurrentDatetime) Name

func (s *CurrentDatetime) Name() string

func (*CurrentDatetime) Sig

func (s *CurrentDatetime) Sig() (paramTypes []data.Type, isVariadic bool)

type CurrentTime

type CurrentTime struct {
}

func (*CurrentTime) Eval

func (s *CurrentTime) Eval(d ...interface{}) (interface{}, error)

func (*CurrentTime) GetCategory

func (s *CurrentTime) GetCategory() string

func (*CurrentTime) Name

func (s *CurrentTime) Name() string

func (*CurrentTime) Sig

func (s *CurrentTime) Sig() (paramTypes []data.Type, isVariadic bool)

type FormatDate

type FormatDate struct {
}

Deprecated

func (*FormatDate) Eval

func (s *FormatDate) Eval(params ...interface{}) (interface{}, error)

func (*FormatDate) GetCategory

func (s *FormatDate) GetCategory() string

func (*FormatDate) Name

func (s *FormatDate) Name() string

func (*FormatDate) Sig

func (s *FormatDate) Sig() (paramTypes []data.Type, isVariadic bool)

type FormatDatetime

type FormatDatetime struct {
}

Deprecated

func (*FormatDatetime) Eval

func (s *FormatDatetime) Eval(params ...interface{}) (interface{}, error)

func (*FormatDatetime) GetCategory

func (s *FormatDatetime) GetCategory() string

func (*FormatDatetime) Name

func (s *FormatDatetime) Name() string

func (*FormatDatetime) Sig

func (s *FormatDatetime) Sig() (paramTypes []data.Type, isVariadic bool)

type FormatTime

type FormatTime struct {
}

Deprecated

func (*FormatTime) Eval

func (s *FormatTime) Eval(params ...interface{}) (interface{}, error)

func (*FormatTime) GetCategory

func (s *FormatTime) GetCategory() string

func (*FormatTime) Name

func (s *FormatTime) Name() string

func (*FormatTime) Sig

func (s *FormatTime) Sig() (paramTypes []data.Type, isVariadic bool)

type Now

type Now struct {
}

func (*Now) Eval

func (s *Now) Eval(params ...interface{}) (interface{}, error)

func (*Now) GetCategory

func (s *Now) GetCategory() string

func (*Now) Name

func (s *Now) Name() string

func (*Now) Sig

func (s *Now) Sig() (paramTypes []data.Type, isVariadic bool)

type Timestamp

type Timestamp struct {
}

func (*Timestamp) Eval

func (s *Timestamp) Eval(params ...interface{}) (interface{}, error)

func (*Timestamp) GetCategory

func (s *Timestamp) GetCategory() string

func (*Timestamp) Name

func (s *Timestamp) Name() string

func (*Timestamp) Sig

func (s *Timestamp) Sig() (paramTypes []data.Type, isVariadic bool)

Jump to

Keyboard shortcuts

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