datetime

package module
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v0.11.0

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)

Jump to

Keyboard shortcuts

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