func (jt Time) Value() (driver.Value, error) {
	return xtime.Unix(int64(jt), 0), nil
}
Value get time value.
package time
import (
	"context"
	"database/sql/driver"
	"strconv"
	xtime "time"
)
type Time int64
func (jt *Time) Scan(src interface{}) (err error) {
	switch sc := src.(type) {
	case xtime.Time:
		*jt = Time(sc.Unix())
	case string:
		var i int64
		i, err = strconv.ParseInt(sc, 10, 64)
		*jt = Time(i)
	}
	return
}