thyme

package
v0.0.0-...-3525705 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Epoch   = 1660007128
	RFC3339 = tyme.RFC3339
)

Variables

View Source
var (
	Date  = tyme.Date
	Parse = tyme.Parse
)

Functions

This section is empty.

Types

type Time

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

func Now

func Now() Time

func TimeWithIndex

func TimeWithIndex(t1 Time, n int) (t2 Time)

func Tyme

func Tyme(t tyme.Time) Time

func (Time) Equals

func (t Time) Equals(t1 Time) bool

func (Time) EqualsAny

func (t Time) EqualsAny(t1 any) bool

func (Time) EqualsSansIndex

func (a Time) EqualsSansIndex(b Time) bool

func (Time) GetTime

func (t Time) GetTime() time

func (Time) IsEmpty

func (t Time) IsEmpty() bool

func (Time) Less

func (t Time) Less(t1 Time) bool

func (Time) MarshalBinary

func (t Time) MarshalBinary() (text []byte, err error)

func (Time) MarshalText

func (t Time) MarshalText() (text []byte, err error)

func (*Time) Reset

func (t *Time) Reset()

func (*Time) Set

func (t *Time) Set(v string) (err error)

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalBinary

func (t *Time) UnmarshalBinary(text []byte) (err error)

func (*Time) UnmarshalText

func (t *Time) UnmarshalText(text []byte) (err error)

Source Files

  • time.go

Jump to

Keyboard shortcuts

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