java_sql_time

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	time.Time
}

func (*Date) Day

func (d *Date) Day() int

nolint

func (*Date) GetTime

func (d *Date) GetTime() time.Time

func (Date) JavaClassName

func (Date) JavaClassName() string

func (*Date) Month

func (d *Date) Month() time.Month

nolint

func (*Date) SetTime

func (d *Date) SetTime(time time.Time)

func (*Date) ValueOf

func (d *Date) ValueOf(dateStr string) error

func (*Date) Year

func (d *Date) Year() int

nolint

type JavaSqlTime

type JavaSqlTime interface {
	// ValueOf parse time string which format likes '2006-01-02 15:04:05'
	ValueOf(timeStr string) error
	// SetTime for decode time
	SetTime(time time.Time)
	JavaClassName() string
	// GetTime used to time
	GetTime() time.Time
}

type Time

type Time struct {
	time.Time
}

func (*Time) GetTime

func (t *Time) GetTime() time.Time

func (*Time) Hour

func (t *Time) Hour() int

nolint

func (Time) JavaClassName

func (Time) JavaClassName() string

func (*Time) Minute

func (t *Time) Minute() int

nolint

func (*Time) Second

func (t *Time) Second() int

nolint

func (*Time) SetTime

func (t *Time) SetTime(time time.Time)

func (*Time) ValueOf

func (t *Time) ValueOf(timeStr string) error

Jump to

Keyboard shortcuts

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