Help us shape the future of Go! Take the 2026 Go Developer Survey

ts

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTime

type MockTime struct{}

func Mock

func Mock(t time.Time) (*MockTime, func())

func (*MockTime) Advance

func (m *MockTime) Advance(d time.Duration)

type Timestamp

type Timestamp struct {
	time.Time
}

func Date

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

func New

func New(t time.Time) Timestamp

func NewPtr

func NewPtr(t time.Time) *Timestamp

func Now

func Now() Timestamp

func NowPtr

func NowPtr() *Timestamp

func (*Timestamp) Scan

func (ts *Timestamp) Scan(value any) error

func (Timestamp) Value

func (ts Timestamp) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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