dbtime

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 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 DBTime

type DBTime struct {
	time.Time
}

func NewTime

func NewTime(t time.Time) DBTime

func Now

func Now() DBTime

func (*DBTime) AddDate

func (dt *DBTime) AddDate(t time.Time) time.Time

func (*DBTime) Scan

func (dt *DBTime) Scan(src interface{}) (err error)

Scan scans the time parsing it if necessary using timeFormat.

func (*DBTime) Value

func (dt *DBTime) Value() (driver.Value, error)

Value returns the time as string using timeFormat.

Jump to

Keyboard shortcuts

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