Versions in this module Expand all Collapse all v2 v2.0.2 Oct 11, 2023 v2.0.1 Oct 11, 2023 Changes in this version + type Clock interface + Now func() Timestamp + func NewClock() Clock + type MockClock struct + func NewMockClock(ts Timestamp) *MockClock + func (clk *MockClock) Now() Timestamp + func (clk *MockClock) Set(ts Timestamp) + type Timestamp struct + func FromTime(t time.Time) Timestamp + func Now() Timestamp + func (ts *Timestamp) Scan(src any) error + func (ts *Timestamp) UnmarshalJSON(b []byte) error + func (ts Timestamp) MarshalJSON() ([]byte, error) + func (ts Timestamp) String() string + func (ts Timestamp) Time() time.Time + func (ts Timestamp) Value() (driver.Value, error) Other modules containing this package github.com/m0t0k1ch1-go/timeutil github.com/m0t0k1ch1-go/timeutil/v3 github.com/m0t0k1ch1-go/timeutil/v4