dbdate

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 DBDate

type DBDate struct {
	time.Time
}

func NewTime

func NewTime(t time.Time) DBDate

func (*DBDate) Scan

func (tm *DBDate) Scan(src interface{}) (err error)

Scan scans the time parsing it if necessary using timeFormat.

func (DBDate) Value

func (tm DBDate) 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