types

package
v1.9.2-0...-397750e Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTZ

func ParseTZ(tzs string) (zh, zm int, err error)

func TZOfTime

func TZOfTime(t time.Time) (zh, zm int)

Types

type Money

type Money float64

type MoneyAssigner

type MoneyAssigner struct {
}

func (MoneyAssigner) DbBindVar

func (MoneyAssigner) DbBindVar(dialect aorm.Dialector, argVar string) string

func (MoneyAssigner) SQLSize

func (MoneyAssigner) SQLSize(_ aorm.Dialector) int

func (MoneyAssigner) SQLType

func (MoneyAssigner) SQLType(dialect aorm.Dialector) string

func (MoneyAssigner) Scaner

func (MoneyAssigner) Select

func (MoneyAssigner) Select(field *aorm.StructField, scope *aorm.Scope, table string) aorm.Query

func (MoneyAssigner) SelectWrap

func (MoneyAssigner) SelectWrap(_ *aorm.StructField, scope *aorm.Scope, expr string) aorm.Query

func (MoneyAssigner) Type

func (MoneyAssigner) Type() reflect.Type

func (MoneyAssigner) Valuer

func (MoneyAssigner) Valuer(_ aorm.Dialector, value interface{}) driver.Valuer

type Time

type Time struct {
	// contains filtered or unexported fields
}

func NewTime

func NewTime(h, m, s int) Time

func (Time) AormDataType

func (Time) AormDataType(aorm.Dialector) string

func (Time) Hour

func (this Time) Hour() int

func (Time) Minute

func (this Time) Minute() int

func (*Time) Scan

func (this *Time) Scan(src interface{}) (err error)

func (Time) Second

func (this Time) Second() int

func (Time) String

func (this Time) String() string

func (Time) Time

func (this Time) Time() time.Time

func (Time) Value

func (this Time) Value() (driver.Value, error)

type TimeZ

type TimeZ struct {
	// contains filtered or unexported fields
}

func NewTimeZ

func NewTimeZ(h, m, s, zh, zm int) TimeZ

func (TimeZ) AormDataType

func (TimeZ) AormDataType(aorm.Dialector) string

func (TimeZ) Hour

func (this TimeZ) Hour() int

func (TimeZ) Minute

func (this TimeZ) Minute() int

func (*TimeZ) Scan

func (this *TimeZ) Scan(src interface{}) (err error)

func (TimeZ) Second

func (this TimeZ) Second() int

func (TimeZ) String

func (this TimeZ) String() string

func (TimeZ) Time

func (this TimeZ) Time() time.Time

func (TimeZ) Value

func (this TimeZ) Value() (driver.Value, error)

func (TimeZ) Zone

func (this TimeZ) Zone() (h, m int)

Jump to

Keyboard shortcuts

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