package jsontime
import "go.mau.fi/util/jsontime"
Index ¶
- Variables
- type Microseconds
- func (s *Microseconds) Get() time.Duration
- func (s Microseconds) MarshalJSON() ([]byte, error)
- func (s *Microseconds) Scan(src interface{}) error
- func (s *Microseconds) UnmarshalJSON(data []byte) error
- func (s Microseconds) Value() (driver.Value, error)
- type Milliseconds
- func MS(dur time.Duration) Milliseconds
- func MSInt(dur int64) Milliseconds
- func (s *Milliseconds) Get() time.Duration
- func (s Milliseconds) MarshalJSON() ([]byte, error)
- func (s *Milliseconds) Scan(src interface{}) error
- func (s *Milliseconds) UnmarshalJSON(data []byte) error
- func (s Milliseconds) Value() (driver.Value, error)
- type Nanoseconds
- func (s *Nanoseconds) Get() time.Duration
- func (s Nanoseconds) MarshalJSON() ([]byte, error)
- func (s *Nanoseconds) Scan(src interface{}) error
- func (s *Nanoseconds) UnmarshalJSON(data []byte) error
- func (s Nanoseconds) Value() (driver.Value, error)
- type Seconds
- func S(dur time.Duration) Seconds
- func SInt(dur int) Seconds
- func (s *Seconds) Get() time.Duration
- func (s Seconds) MarshalJSON() ([]byte, error)
- func (s *Seconds) Scan(src interface{}) error
- func (s *Seconds) UnmarshalJSON(data []byte) error
- func (s Seconds) Value() (driver.Value, error)
- type Unix
- func U(time time.Time) Unix
- func UInt(ts int64) Unix
- func UnixNow() Unix
- func (u Unix) MarshalJSON() ([]byte, error)
- func (u *Unix) Scan(src any) error
- func (u *Unix) UnmarshalJSON(data []byte) error
- func (u Unix) Value() (driver.Value, error)
- type UnixMicro
- func UMicro(time time.Time) UnixMicro
- func UMicroInto(ts int64) UnixMicro
- func UnixMicroNow() UnixMicro
- func (um UnixMicro) MarshalJSON() ([]byte, error)
- func (um *UnixMicro) Scan(src any) error
- func (um *UnixMicro) UnmarshalJSON(data []byte) error
- func (um UnixMicro) Value() (driver.Value, error)
- type UnixMicroString
- func (um UnixMicroString) MarshalJSON() ([]byte, error)
- func (um *UnixMicroString) UnmarshalJSON(data []byte) error
- type UnixMilli
- func UM(time time.Time) UnixMilli
- func UMInt(ts int64) UnixMilli
- func UnixMilliNow() UnixMilli
- func (um UnixMilli) MarshalJSON() ([]byte, error)
- func (um *UnixMilli) Scan(src any) error
- func (um *UnixMilli) UnmarshalJSON(data []byte) error
- func (um UnixMilli) Value() (driver.Value, error)
- type UnixMilliString
- func (um UnixMilliString) MarshalJSON() ([]byte, error)
- func (um *UnixMilliString) UnmarshalJSON(data []byte) error
- type UnixNano
- func UN(time time.Time) UnixNano
- func UNInt(ts int64) UnixNano
- func UnixNanoNow() UnixNano
- func (un UnixNano) MarshalJSON() ([]byte, error)
- func (un *UnixNano) Scan(src any) error
- func (un *UnixNano) UnmarshalJSON(data []byte) error
- func (un UnixNano) Value() (driver.Value, error)
- type UnixNanoString
- func (um UnixNanoString) MarshalJSON() ([]byte, error)
- func (um *UnixNanoString) UnmarshalJSON(data []byte) error
- type UnixString
Variables ¶
Types ¶
type Microseconds ¶
func (*Microseconds) Get ¶
func (s *Microseconds) Get() time.Duration
func (Microseconds) MarshalJSON ¶
func (s Microseconds) MarshalJSON() ([]byte, error)
func (*Microseconds) Scan ¶
func (s *Microseconds) Scan(src interface{}) error
func (*Microseconds) UnmarshalJSON ¶
func (s *Microseconds) UnmarshalJSON(data []byte) error
func (Microseconds) Value ¶
func (s Microseconds) Value() (driver.Value, error)
type Milliseconds ¶
func MS ¶
func MS(dur time.Duration) Milliseconds
func MSInt ¶
func MSInt(dur int64) Milliseconds
func (*Milliseconds) Get ¶
func (s *Milliseconds) Get() time.Duration
func (Milliseconds) MarshalJSON ¶
func (s Milliseconds) MarshalJSON() ([]byte, error)
func (*Milliseconds) Scan ¶
func (s *Milliseconds) Scan(src interface{}) error
func (*Milliseconds) UnmarshalJSON ¶
func (s *Milliseconds) UnmarshalJSON(data []byte) error
func (Milliseconds) Value ¶
func (s Milliseconds) Value() (driver.Value, error)
type Nanoseconds ¶
func (*Nanoseconds) Get ¶
func (s *Nanoseconds) Get() time.Duration
func (Nanoseconds) MarshalJSON ¶
func (s Nanoseconds) MarshalJSON() ([]byte, error)
func (*Nanoseconds) Scan ¶
func (s *Nanoseconds) Scan(src interface{}) error
func (*Nanoseconds) UnmarshalJSON ¶
func (s *Nanoseconds) UnmarshalJSON(data []byte) error
func (Nanoseconds) Value ¶
func (s Nanoseconds) Value() (driver.Value, error)
type Seconds ¶
func S ¶
func SInt ¶
func (*Seconds) Get ¶
func (Seconds) MarshalJSON ¶
func (*Seconds) Scan ¶
func (*Seconds) UnmarshalJSON ¶
func (Seconds) Value ¶
type Unix ¶
func U ¶
func UInt ¶
func UnixNow ¶
func UnixNow() Unix
func (Unix) MarshalJSON ¶
func (*Unix) Scan ¶
func (*Unix) UnmarshalJSON ¶
func (Unix) Value ¶
type UnixMicro ¶
func UMicro ¶
func UMicroInto ¶
func UnixMicroNow ¶
func UnixMicroNow() UnixMicro
func (UnixMicro) MarshalJSON ¶
func (*UnixMicro) Scan ¶
func (*UnixMicro) UnmarshalJSON ¶
func (UnixMicro) Value ¶
type UnixMicroString ¶
func (UnixMicroString) MarshalJSON ¶
func (um UnixMicroString) MarshalJSON() ([]byte, error)
func (*UnixMicroString) UnmarshalJSON ¶
func (um *UnixMicroString) UnmarshalJSON(data []byte) error
type UnixMilli ¶
func UM ¶
func UMInt ¶
func UnixMilliNow ¶
func UnixMilliNow() UnixMilli
func (UnixMilli) MarshalJSON ¶
func (*UnixMilli) Scan ¶
func (*UnixMilli) UnmarshalJSON ¶
func (UnixMilli) Value ¶
type UnixMilliString ¶
func (UnixMilliString) MarshalJSON ¶
func (um UnixMilliString) MarshalJSON() ([]byte, error)
func (*UnixMilliString) UnmarshalJSON ¶
func (um *UnixMilliString) UnmarshalJSON(data []byte) error
type UnixNano ¶
func UN ¶
func UNInt ¶
func UnixNanoNow ¶
func UnixNanoNow() UnixNano
func (UnixNano) MarshalJSON ¶
func (*UnixNano) Scan ¶
func (*UnixNano) UnmarshalJSON ¶
func (UnixNano) Value ¶
type UnixNanoString ¶
func (UnixNanoString) MarshalJSON ¶
func (um UnixNanoString) MarshalJSON() ([]byte, error)
func (*UnixNanoString) UnmarshalJSON ¶
func (um *UnixNanoString) UnmarshalJSON(data []byte) error
type UnixString ¶
func (UnixString) MarshalJSON ¶
func (u UnixString) MarshalJSON() ([]byte, error)
func (*UnixString) UnmarshalJSON ¶
func (u *UnixString) UnmarshalJSON(data []byte) error
Source Files ¶
duration.go helpers.go integer.go string.go
- Version
- v0.8.6 (latest)
- Published
- Mar 16, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 6 days ago –
Tools for package owners.