rfctime

package
v0.0.439 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyTime added in v0.0.93

type AnyTime interface {
	MarshalJSON() ([]byte, error)

	MarshalBinary() ([]byte, error)

	GobEncode() ([]byte, error)

	MarshalText() ([]byte, error)

	IsZero() bool
	Date() (year int, month time.Month, day int)
	Year() int
	Month() time.Month
	Day() int
	Weekday() time.Weekday
	ISOWeek() (year, week int)
	Clock() (hour, min, sec int)
	Hour() int
	Minute() int
	Second() int
	Nanosecond() int
	YearDay() int
	Unix() int64
	UnixMilli() int64
	UnixMicro() int64
	UnixNano() int64
	Format(layout string) string
	GoString() string
	String() string

	Location() *time.Location
}

type Date added in v0.0.160

type Date struct {
	Year  int
	Month int
	Day   int
}

func NewDate added in v0.0.160

func NewDate(t time.Time) Date

func NowDate added in v0.0.160

func NowDate(loc *time.Location) Date

func NowDateLoc added in v0.0.160

func NowDateLoc() Date

func NowDateUTC added in v0.0.160

func NowDateUTC() Date

func (Date) AddDate added in v0.0.160

func (t Date) AddDate(years int, months int, days int) Date

func (Date) Date added in v0.0.160

func (t Date) Date() (year int, month time.Month, day int)

func (Date) DecodeValue added in v0.0.160

func (t Date) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error

func (Date) Format added in v0.0.160

func (t Date) Format(layout string) string

func (Date) FormatStr added in v0.0.160

func (t Date) FormatStr() string

func (Date) GoString added in v0.0.160

func (t Date) GoString() string

func (*Date) GobDecode added in v0.0.160

func (t *Date) GobDecode(data []byte) error

func (Date) GobEncode added in v0.0.160

func (t Date) GobEncode() ([]byte, error)

func (Date) ISOWeek added in v0.0.160

func (t Date) ISOWeek() (year, week int)

func (Date) IsZero added in v0.0.414

func (t Date) IsZero() bool

func (Date) MarshalBSONValue added in v0.0.160

func (t Date) MarshalBSONValue() (bsontype.Type, []byte, error)

func (Date) MarshalBinary added in v0.0.160

func (t Date) MarshalBinary() ([]byte, error)

func (Date) MarshalJSON added in v0.0.160

func (t Date) MarshalJSON() ([]byte, error)

func (Date) MarshalText added in v0.0.160

func (t Date) MarshalText() ([]byte, error)

func (*Date) ParseString added in v0.0.404

func (t *Date) ParseString(v string) error

func (Date) Serialize added in v0.0.160

func (t Date) Serialize() string

func (Date) String added in v0.0.160

func (t Date) String() string

func (Date) Time added in v0.0.160

func (t Date) Time(loc *time.Location) time.Time

func (Date) TimeLocal added in v0.0.160

func (t Date) TimeLocal() time.Time

func (Date) TimeUTC added in v0.0.160

func (t Date) TimeUTC() time.Time

func (Date) Unix added in v0.0.160

func (t Date) Unix() int64

func (Date) UnixMicro added in v0.0.160

func (t Date) UnixMicro() int64

func (Date) UnixMilli added in v0.0.160

func (t Date) UnixMilli() int64

func (Date) UnixNano added in v0.0.160

func (t Date) UnixNano() int64

func (*Date) UnmarshalBSONValue added in v0.0.160

func (t *Date) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*Date) UnmarshalBinary added in v0.0.160

func (t *Date) UnmarshalBinary(data []byte) error

func (*Date) UnmarshalJSON added in v0.0.160

func (t *Date) UnmarshalJSON(data []byte) error

func (*Date) UnmarshalText added in v0.0.160

func (t *Date) UnmarshalText(data []byte) error

func (Date) Weekday added in v0.0.160

func (t Date) Weekday() time.Weekday

func (Date) YearDay added in v0.0.160

func (t Date) YearDay() int

type RFC3339NanoTime

type RFC3339NanoTime time.Time

func NewRFC3339Nano

func NewRFC3339Nano(t time.Time) RFC3339NanoTime

func NewRFC3339NanoPtr added in v0.0.434

func NewRFC3339NanoPtr(t *time.Time) *RFC3339NanoTime

func NowRFC3339Nano

func NowRFC3339Nano() RFC3339NanoTime

func (RFC3339NanoTime) Add

func (RFC3339NanoTime) AddDate

func (t RFC3339NanoTime) AddDate(years int, months int, days int) RFC3339NanoTime

func (RFC3339NanoTime) After

func (t RFC3339NanoTime) After(u AnyTime) bool

func (RFC3339NanoTime) Before

func (t RFC3339NanoTime) Before(u AnyTime) bool

func (RFC3339NanoTime) Clock

func (t RFC3339NanoTime) Clock() (hour, min, sec int)

func (RFC3339NanoTime) Date

func (t RFC3339NanoTime) Date() (year int, month time.Month, day int)

func (RFC3339NanoTime) Day

func (t RFC3339NanoTime) Day() int

func (RFC3339NanoTime) DecodeValue added in v0.0.111

func (RFC3339NanoTime) Equal

func (t RFC3339NanoTime) Equal(u AnyTime) bool

func (RFC3339NanoTime) Format

func (t RFC3339NanoTime) Format(layout string) string

func (RFC3339NanoTime) FormatStr

func (t RFC3339NanoTime) FormatStr() string

func (RFC3339NanoTime) GoString

func (t RFC3339NanoTime) GoString() string

func (*RFC3339NanoTime) GobDecode

func (t *RFC3339NanoTime) GobDecode(data []byte) error

func (RFC3339NanoTime) GobEncode

func (t RFC3339NanoTime) GobEncode() ([]byte, error)

func (RFC3339NanoTime) Hour

func (t RFC3339NanoTime) Hour() int

func (RFC3339NanoTime) ISOWeek

func (t RFC3339NanoTime) ISOWeek() (year, week int)

func (RFC3339NanoTime) IsZero

func (t RFC3339NanoTime) IsZero() bool

func (RFC3339NanoTime) Location added in v0.0.93

func (t RFC3339NanoTime) Location() *time.Location

func (RFC3339NanoTime) MarshalBSONValue added in v0.0.80

func (t RFC3339NanoTime) MarshalBSONValue() (bsontype.Type, []byte, error)

func (RFC3339NanoTime) MarshalBinary

func (t RFC3339NanoTime) MarshalBinary() ([]byte, error)

func (RFC3339NanoTime) MarshalJSON

func (t RFC3339NanoTime) MarshalJSON() ([]byte, error)

func (RFC3339NanoTime) MarshalText

func (t RFC3339NanoTime) MarshalText() ([]byte, error)

func (RFC3339NanoTime) Minute

func (t RFC3339NanoTime) Minute() int

func (RFC3339NanoTime) Month

func (t RFC3339NanoTime) Month() time.Month

func (RFC3339NanoTime) Nanosecond

func (t RFC3339NanoTime) Nanosecond() int

func (RFC3339NanoTime) Second

func (t RFC3339NanoTime) Second() int

func (RFC3339NanoTime) Serialize

func (t RFC3339NanoTime) Serialize() string

func (RFC3339NanoTime) String

func (t RFC3339NanoTime) String() string

func (RFC3339NanoTime) Sub

func (RFC3339NanoTime) Time

func (t RFC3339NanoTime) Time() time.Time

func (RFC3339NanoTime) Unix

func (t RFC3339NanoTime) Unix() int64

func (RFC3339NanoTime) UnixMicro

func (t RFC3339NanoTime) UnixMicro() int64

func (RFC3339NanoTime) UnixMilli

func (t RFC3339NanoTime) UnixMilli() int64

func (RFC3339NanoTime) UnixNano

func (t RFC3339NanoTime) UnixNano() int64

func (*RFC3339NanoTime) UnmarshalBSONValue added in v0.0.80

func (t *RFC3339NanoTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*RFC3339NanoTime) UnmarshalBinary

func (t *RFC3339NanoTime) UnmarshalBinary(data []byte) error

func (*RFC3339NanoTime) UnmarshalJSON

func (t *RFC3339NanoTime) UnmarshalJSON(data []byte) error

func (*RFC3339NanoTime) UnmarshalText

func (t *RFC3339NanoTime) UnmarshalText(data []byte) error

func (RFC3339NanoTime) Weekday

func (t RFC3339NanoTime) Weekday() time.Weekday

func (RFC3339NanoTime) Year

func (t RFC3339NanoTime) Year() int

func (RFC3339NanoTime) YearDay

func (t RFC3339NanoTime) YearDay() int

type RFC3339Time added in v0.0.69

type RFC3339Time time.Time

func NewRFC3339 added in v0.0.69

func NewRFC3339(t time.Time) RFC3339Time

func NewRFC3339Ptr added in v0.0.434

func NewRFC3339Ptr(t *time.Time) *RFC3339Time

func NowRFC3339 added in v0.0.69

func NowRFC3339() RFC3339Time

func (RFC3339Time) Add added in v0.0.69

func (RFC3339Time) AddDate added in v0.0.69

func (t RFC3339Time) AddDate(years int, months int, days int) RFC3339Time

func (RFC3339Time) After added in v0.0.69

func (t RFC3339Time) After(u AnyTime) bool

func (RFC3339Time) Before added in v0.0.69

func (t RFC3339Time) Before(u AnyTime) bool

func (RFC3339Time) Clock added in v0.0.69

func (t RFC3339Time) Clock() (hour, min, sec int)

func (RFC3339Time) Date added in v0.0.69

func (t RFC3339Time) Date() (year int, month time.Month, day int)

func (RFC3339Time) Day added in v0.0.69

func (t RFC3339Time) Day() int

func (RFC3339Time) DecodeValue added in v0.0.110

func (RFC3339Time) Equal added in v0.0.69

func (t RFC3339Time) Equal(u AnyTime) bool

func (RFC3339Time) Format added in v0.0.69

func (t RFC3339Time) Format(layout string) string

func (RFC3339Time) FormatStr added in v0.0.69

func (t RFC3339Time) FormatStr() string

func (RFC3339Time) GoString added in v0.0.69

func (t RFC3339Time) GoString() string

func (*RFC3339Time) GobDecode added in v0.0.69

func (t *RFC3339Time) GobDecode(data []byte) error

func (RFC3339Time) GobEncode added in v0.0.69

func (t RFC3339Time) GobEncode() ([]byte, error)

func (RFC3339Time) Hour added in v0.0.69

func (t RFC3339Time) Hour() int

func (RFC3339Time) ISOWeek added in v0.0.69

func (t RFC3339Time) ISOWeek() (year, week int)

func (RFC3339Time) IsZero added in v0.0.69

func (t RFC3339Time) IsZero() bool

func (RFC3339Time) Location added in v0.0.93

func (t RFC3339Time) Location() *time.Location

func (RFC3339Time) MarshalBSONValue added in v0.0.80

func (t RFC3339Time) MarshalBSONValue() (bsontype.Type, []byte, error)

func (RFC3339Time) MarshalBinary added in v0.0.69

func (t RFC3339Time) MarshalBinary() ([]byte, error)

func (RFC3339Time) MarshalJSON added in v0.0.69

func (t RFC3339Time) MarshalJSON() ([]byte, error)

func (RFC3339Time) MarshalText added in v0.0.69

func (t RFC3339Time) MarshalText() ([]byte, error)

func (RFC3339Time) Minute added in v0.0.69

func (t RFC3339Time) Minute() int

func (RFC3339Time) Month added in v0.0.69

func (t RFC3339Time) Month() time.Month

func (RFC3339Time) Nanosecond added in v0.0.69

func (t RFC3339Time) Nanosecond() int

func (RFC3339Time) Second added in v0.0.69

func (t RFC3339Time) Second() int

func (RFC3339Time) Serialize added in v0.0.69

func (t RFC3339Time) Serialize() string

func (RFC3339Time) String added in v0.0.69

func (t RFC3339Time) String() string

func (RFC3339Time) Sub added in v0.0.69

func (t RFC3339Time) Sub(u AnyTime) time.Duration

func (RFC3339Time) Time added in v0.0.69

func (t RFC3339Time) Time() time.Time

func (RFC3339Time) Unix added in v0.0.69

func (t RFC3339Time) Unix() int64

func (RFC3339Time) UnixMicro added in v0.0.69

func (t RFC3339Time) UnixMicro() int64

func (RFC3339Time) UnixMilli added in v0.0.69

func (t RFC3339Time) UnixMilli() int64

func (RFC3339Time) UnixNano added in v0.0.69

func (t RFC3339Time) UnixNano() int64

func (*RFC3339Time) UnmarshalBSONValue added in v0.0.80

func (t *RFC3339Time) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*RFC3339Time) UnmarshalBinary added in v0.0.69

func (t *RFC3339Time) UnmarshalBinary(data []byte) error

func (*RFC3339Time) UnmarshalJSON added in v0.0.69

func (t *RFC3339Time) UnmarshalJSON(data []byte) error

func (*RFC3339Time) UnmarshalText added in v0.0.69

func (t *RFC3339Time) UnmarshalText(data []byte) error

func (RFC3339Time) Weekday added in v0.0.69

func (t RFC3339Time) Weekday() time.Weekday

func (RFC3339Time) Year added in v0.0.69

func (t RFC3339Time) Year() int

func (RFC3339Time) YearDay added in v0.0.69

func (t RFC3339Time) YearDay() int

type RFCDuration added in v0.0.79

type RFCDuration interface {
	Time() time.Time
	Serialize() string

	UnmarshalJSON(bytes []byte) error
	MarshalJSON() ([]byte, error)

	MarshalBinary() ([]byte, error)
	UnmarshalBinary(data []byte) error

	GobEncode() ([]byte, error)
	GobDecode(data []byte) error

	MarshalText() ([]byte, error)
	UnmarshalText(data []byte) error

	After(u AnyTime) bool
	Before(u AnyTime) bool
	Equal(u AnyTime) bool
	IsZero() bool
	Date() (year int, month time.Month, day int)
	Year() int
	Month() time.Month
	Day() int
	Weekday() time.Weekday
	ISOWeek() (year, week int)
	Clock() (hour, min, sec int)
	Hour() int
	Minute() int
	Second() int
	Nanosecond() int
	YearDay() int
	Sub(u AnyTime) time.Duration
	Unix() int64
	UnixMilli() int64
	UnixMicro() int64
	UnixNano() int64
	Format(layout string) string
	GoString() string
	String() string
}

type RFCTime

type RFCTime interface {
	AnyTime

	Time() time.Time
	Serialize() string

	After(u AnyTime) bool
	Before(u AnyTime) bool
	Equal(u AnyTime) bool

	Sub(u AnyTime) time.Duration
}

type SecondsF64 added in v0.0.79

type SecondsF64 time.Duration

func NewSecondsF64 added in v0.0.79

func NewSecondsF64(t time.Duration) SecondsF64

func (SecondsF64) DecodeValue added in v0.0.314

func (SecondsF64) Duration added in v0.0.79

func (d SecondsF64) Duration() time.Duration

func (SecondsF64) Hours added in v0.0.79

func (d SecondsF64) Hours() float64

func (SecondsF64) MarshalBSONValue added in v0.0.314

func (d SecondsF64) MarshalBSONValue() (bsontype.Type, []byte, error)

func (SecondsF64) MarshalJSON added in v0.0.79

func (d SecondsF64) MarshalJSON() ([]byte, error)

func (SecondsF64) Microseconds added in v0.0.79

func (d SecondsF64) Microseconds() int64

func (SecondsF64) Milliseconds added in v0.0.79

func (d SecondsF64) Milliseconds() int64

func (SecondsF64) Minutes added in v0.0.79

func (d SecondsF64) Minutes() float64

func (SecondsF64) Nanoseconds added in v0.0.79

func (d SecondsF64) Nanoseconds() int64

func (SecondsF64) Seconds added in v0.0.79

func (d SecondsF64) Seconds() float64

func (SecondsF64) String added in v0.0.79

func (d SecondsF64) String() string

func (*SecondsF64) UnmarshalBSONValue added in v0.0.314

func (d *SecondsF64) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*SecondsF64) UnmarshalJSON added in v0.0.79

func (d *SecondsF64) UnmarshalJSON(data []byte) error

type Time added in v0.0.392

type Time struct {
	Hour       int
	Minute     int
	Second     int
	NanoSecond int
}

func NewTime added in v0.0.392

func NewTime(h int, m int, s int, ns int) Time

func NewTimeFromTS added in v0.0.393

func NewTimeFromTS(t time.Time) Time

func NowTime added in v0.0.392

func NowTime(loc *time.Location) Time

func NowTimeLoc added in v0.0.392

func NowTimeLoc() Time

func NowTimeUTC added in v0.0.392

func NowTimeUTC() Time

func (*Time) Deserialize added in v0.0.392

func (t *Time) Deserialize(v string) error

func (Time) FormatStr added in v0.0.392

func (t Time) FormatStr() string

func (Time) GoString added in v0.0.392

func (t Time) GoString() string

func (Time) Serialize added in v0.0.392

func (t Time) Serialize() string

func (Time) SerializeShort added in v0.0.392

func (t Time) SerializeShort() string

func (Time) String added in v0.0.392

func (t Time) String() string

type UnixMilliTime

type UnixMilliTime time.Time

func NewUnixMilli

func NewUnixMilli(t time.Time) UnixMilliTime

func NewUnixMilliPtr added in v0.0.434

func NewUnixMilliPtr(t *time.Time) *UnixMilliTime

func NowUnixMilli

func NowUnixMilli() UnixMilliTime

func (UnixMilliTime) Add

func (UnixMilliTime) AddDate

func (t UnixMilliTime) AddDate(years int, months int, days int) UnixMilliTime

func (UnixMilliTime) After

func (t UnixMilliTime) After(u AnyTime) bool

func (UnixMilliTime) Before

func (t UnixMilliTime) Before(u AnyTime) bool

func (UnixMilliTime) Clock

func (t UnixMilliTime) Clock() (hour, min, sec int)

func (UnixMilliTime) Date

func (t UnixMilliTime) Date() (year int, month time.Month, day int)

func (UnixMilliTime) Day

func (t UnixMilliTime) Day() int

func (UnixMilliTime) DecodeValue added in v0.0.313

func (UnixMilliTime) Equal

func (t UnixMilliTime) Equal(u AnyTime) bool

func (UnixMilliTime) Format

func (t UnixMilliTime) Format(layout string) string

func (UnixMilliTime) GoString

func (t UnixMilliTime) GoString() string

func (*UnixMilliTime) GobDecode

func (t *UnixMilliTime) GobDecode(data []byte) error

func (UnixMilliTime) GobEncode

func (t UnixMilliTime) GobEncode() ([]byte, error)

func (UnixMilliTime) Hour

func (t UnixMilliTime) Hour() int

func (UnixMilliTime) ISOWeek

func (t UnixMilliTime) ISOWeek() (year, week int)

func (UnixMilliTime) IsZero

func (t UnixMilliTime) IsZero() bool

func (UnixMilliTime) Location added in v0.0.93

func (t UnixMilliTime) Location() *time.Location

func (UnixMilliTime) MarshalBSONValue added in v0.0.313

func (t UnixMilliTime) MarshalBSONValue() (bsontype.Type, []byte, error)

func (UnixMilliTime) MarshalBinary

func (t UnixMilliTime) MarshalBinary() ([]byte, error)

func (UnixMilliTime) MarshalJSON

func (t UnixMilliTime) MarshalJSON() ([]byte, error)

func (UnixMilliTime) MarshalText

func (t UnixMilliTime) MarshalText() ([]byte, error)

func (UnixMilliTime) Minute

func (t UnixMilliTime) Minute() int

func (UnixMilliTime) Month

func (t UnixMilliTime) Month() time.Month

func (UnixMilliTime) Nanosecond

func (t UnixMilliTime) Nanosecond() int

func (UnixMilliTime) Second

func (t UnixMilliTime) Second() int

func (UnixMilliTime) Serialize

func (t UnixMilliTime) Serialize() string

func (UnixMilliTime) String

func (t UnixMilliTime) String() string

func (UnixMilliTime) Sub

func (UnixMilliTime) Time

func (t UnixMilliTime) Time() time.Time

func (UnixMilliTime) Unix

func (t UnixMilliTime) Unix() int64

func (UnixMilliTime) UnixMicro

func (t UnixMilliTime) UnixMicro() int64

func (UnixMilliTime) UnixMilli

func (t UnixMilliTime) UnixMilli() int64

func (UnixMilliTime) UnixNano

func (t UnixMilliTime) UnixNano() int64

func (*UnixMilliTime) UnmarshalBSONValue added in v0.0.313

func (t *UnixMilliTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*UnixMilliTime) UnmarshalBinary

func (t *UnixMilliTime) UnmarshalBinary(data []byte) error

func (*UnixMilliTime) UnmarshalJSON

func (t *UnixMilliTime) UnmarshalJSON(data []byte) error

func (*UnixMilliTime) UnmarshalText

func (t *UnixMilliTime) UnmarshalText(data []byte) error

func (UnixMilliTime) Weekday

func (t UnixMilliTime) Weekday() time.Weekday

func (UnixMilliTime) Year

func (t UnixMilliTime) Year() int

func (UnixMilliTime) YearDay

func (t UnixMilliTime) YearDay() int

type UnixNanoTime

type UnixNanoTime time.Time

func NewUnixNano

func NewUnixNano(t time.Time) UnixNanoTime

func NewUnixNanoPtr added in v0.0.434

func NewUnixNanoPtr(t *time.Time) *UnixNanoTime

func NowUnixNano

func NowUnixNano() UnixNanoTime

func (UnixNanoTime) Add

func (UnixNanoTime) AddDate

func (t UnixNanoTime) AddDate(years int, months int, days int) UnixNanoTime

func (UnixNanoTime) After

func (t UnixNanoTime) After(u AnyTime) bool

func (UnixNanoTime) Before

func (t UnixNanoTime) Before(u AnyTime) bool

func (UnixNanoTime) Clock

func (t UnixNanoTime) Clock() (hour, min, sec int)

func (UnixNanoTime) Date

func (t UnixNanoTime) Date() (year int, month time.Month, day int)

func (UnixNanoTime) Day

func (t UnixNanoTime) Day() int

func (UnixNanoTime) DecodeValue added in v0.0.313

func (UnixNanoTime) Equal

func (t UnixNanoTime) Equal(u AnyTime) bool

func (UnixNanoTime) Format

func (t UnixNanoTime) Format(layout string) string

func (UnixNanoTime) GoString

func (t UnixNanoTime) GoString() string

func (*UnixNanoTime) GobDecode

func (t *UnixNanoTime) GobDecode(data []byte) error

func (UnixNanoTime) GobEncode

func (t UnixNanoTime) GobEncode() ([]byte, error)

func (UnixNanoTime) Hour

func (t UnixNanoTime) Hour() int

func (UnixNanoTime) ISOWeek

func (t UnixNanoTime) ISOWeek() (year, week int)

func (UnixNanoTime) IsZero

func (t UnixNanoTime) IsZero() bool

func (UnixNanoTime) Location added in v0.0.93

func (t UnixNanoTime) Location() *time.Location

func (UnixNanoTime) MarshalBSONValue added in v0.0.313

func (t UnixNanoTime) MarshalBSONValue() (bsontype.Type, []byte, error)

func (UnixNanoTime) MarshalBinary

func (t UnixNanoTime) MarshalBinary() ([]byte, error)

func (UnixNanoTime) MarshalJSON

func (t UnixNanoTime) MarshalJSON() ([]byte, error)

func (UnixNanoTime) MarshalText

func (t UnixNanoTime) MarshalText() ([]byte, error)

func (UnixNanoTime) Minute

func (t UnixNanoTime) Minute() int

func (UnixNanoTime) Month

func (t UnixNanoTime) Month() time.Month

func (UnixNanoTime) Nanosecond

func (t UnixNanoTime) Nanosecond() int

func (UnixNanoTime) Second

func (t UnixNanoTime) Second() int

func (UnixNanoTime) Serialize

func (t UnixNanoTime) Serialize() string

func (UnixNanoTime) String

func (t UnixNanoTime) String() string

func (UnixNanoTime) Sub

func (t UnixNanoTime) Sub(u AnyTime) time.Duration

func (UnixNanoTime) Time

func (t UnixNanoTime) Time() time.Time

func (UnixNanoTime) Unix

func (t UnixNanoTime) Unix() int64

func (UnixNanoTime) UnixMicro

func (t UnixNanoTime) UnixMicro() int64

func (UnixNanoTime) UnixMilli

func (t UnixNanoTime) UnixMilli() int64

func (UnixNanoTime) UnixNano

func (t UnixNanoTime) UnixNano() int64

func (*UnixNanoTime) UnmarshalBSONValue added in v0.0.313

func (t *UnixNanoTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*UnixNanoTime) UnmarshalBinary

func (t *UnixNanoTime) UnmarshalBinary(data []byte) error

func (*UnixNanoTime) UnmarshalJSON

func (t *UnixNanoTime) UnmarshalJSON(data []byte) error

func (*UnixNanoTime) UnmarshalText

func (t *UnixNanoTime) UnmarshalText(data []byte) error

func (UnixNanoTime) Weekday

func (t UnixNanoTime) Weekday() time.Weekday

func (UnixNanoTime) Year

func (t UnixNanoTime) Year() int

func (UnixNanoTime) YearDay

func (t UnixNanoTime) YearDay() int

type UnixTime

type UnixTime time.Time

func NewUnix

func NewUnix(t time.Time) UnixTime

func NewUnixPtr added in v0.0.434

func NewUnixPtr(t *time.Time) *UnixTime

func NowUnix

func NowUnix() UnixTime

func (UnixTime) Add

func (t UnixTime) Add(d time.Duration) UnixTime

func (UnixTime) AddDate

func (t UnixTime) AddDate(years int, months int, days int) UnixTime

func (UnixTime) After

func (t UnixTime) After(u AnyTime) bool

func (UnixTime) Before

func (t UnixTime) Before(u AnyTime) bool

func (UnixTime) Clock

func (t UnixTime) Clock() (hour, min, sec int)

func (UnixTime) Date

func (t UnixTime) Date() (year int, month time.Month, day int)

func (UnixTime) Day

func (t UnixTime) Day() int

func (UnixTime) DecodeValue added in v0.0.313

func (t UnixTime) DecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error

func (UnixTime) Equal

func (t UnixTime) Equal(u AnyTime) bool

func (UnixTime) Format

func (t UnixTime) Format(layout string) string

func (UnixTime) GoString

func (t UnixTime) GoString() string

func (*UnixTime) GobDecode

func (t *UnixTime) GobDecode(data []byte) error

func (UnixTime) GobEncode

func (t UnixTime) GobEncode() ([]byte, error)

func (UnixTime) Hour

func (t UnixTime) Hour() int

func (UnixTime) ISOWeek

func (t UnixTime) ISOWeek() (year, week int)

func (UnixTime) IsZero

func (t UnixTime) IsZero() bool

func (UnixTime) Location added in v0.0.93

func (t UnixTime) Location() *time.Location

func (UnixTime) MarshalBSONValue added in v0.0.313

func (t UnixTime) MarshalBSONValue() (bsontype.Type, []byte, error)

func (UnixTime) MarshalBinary

func (t UnixTime) MarshalBinary() ([]byte, error)

func (UnixTime) MarshalJSON

func (t UnixTime) MarshalJSON() ([]byte, error)

func (UnixTime) MarshalText

func (t UnixTime) MarshalText() ([]byte, error)

func (UnixTime) Minute

func (t UnixTime) Minute() int

func (UnixTime) Month

func (t UnixTime) Month() time.Month

func (UnixTime) Nanosecond

func (t UnixTime) Nanosecond() int

func (UnixTime) Second

func (t UnixTime) Second() int

func (UnixTime) Serialize

func (t UnixTime) Serialize() string

func (UnixTime) String

func (t UnixTime) String() string

func (UnixTime) Sub

func (t UnixTime) Sub(u AnyTime) time.Duration

func (UnixTime) Time

func (t UnixTime) Time() time.Time

func (UnixTime) Unix

func (t UnixTime) Unix() int64

func (UnixTime) UnixMicro

func (t UnixTime) UnixMicro() int64

func (UnixTime) UnixMilli

func (t UnixTime) UnixMilli() int64

func (UnixTime) UnixNano

func (t UnixTime) UnixNano() int64

func (*UnixTime) UnmarshalBSONValue added in v0.0.313

func (t *UnixTime) UnmarshalBSONValue(bt bsontype.Type, data []byte) error

func (*UnixTime) UnmarshalBinary

func (t *UnixTime) UnmarshalBinary(data []byte) error

func (*UnixTime) UnmarshalJSON

func (t *UnixTime) UnmarshalJSON(data []byte) error

func (*UnixTime) UnmarshalText

func (t *UnixTime) UnmarshalText(data []byte) error

func (UnixTime) Weekday

func (t UnixTime) Weekday() time.Weekday

func (UnixTime) Year

func (t UnixTime) Year() int

func (UnixTime) YearDay

func (t UnixTime) YearDay() int

Jump to

Keyboard shortcuts

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