datestr

package
v0.0.0-...-e1a70cd Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatDefault = "2006-01-02"
	Indeterminate = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	// contains filtered or unexported fields
}

func NewFromString

func NewFromString(s string) (*Class, error)

func NewFromTime

func NewFromTime(t time.Time) *Class

func (*Class) AsSqlNullTime

func (c *Class) AsSqlNullTime() (sql.NullTime, error)

func (*Class) AsString

func (c *Class) AsString() string

func (*Class) AsTime

func (c *Class) AsTime() time.Time

func (*Class) Equals

func (c *Class) Equals(other *Class) bool

func (*Class) IsAfter

func (c *Class) IsAfter(other *Class) bool

func (*Class) IsAfterOrEquals

func (c *Class) IsAfterOrEquals(other *Class) bool

func (*Class) IsBefore

func (c *Class) IsBefore(other *Class) bool

func (*Class) IsBeforeOrEquals

func (c *Class) IsBeforeOrEquals(other *Class) bool

func (*Class) IsIndeterminate

func (c *Class) IsIndeterminate() bool

func (*Class) OffsetAndClone

func (c *Class) OffsetAndClone(offset int) *Class

Jump to

Keyboard shortcuts

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