types

package
v0.0.0-...-6302c98 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTimes

func ConvertTimes(times []Time) []time.Time

ConvertTimes 转换数组列表

func InByOffset

func InByOffset(t time.Time, offset int) time.Time

InByOffset 时间时区转换

func TTime0

func TTime0() time.Time

Types

type Int64

type Int64 int64

func (Int64) MarshalGQL

func (t Int64) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (Int64) MarshalJSON

func (t Int64) MarshalJSON() ([]byte, error)

func (Int64) String

func (t Int64) String() string

func (*Int64) ToInt64

func (t *Int64) ToInt64() int64

func (*Int64) UnmarshalGQL

func (t *Int64) UnmarshalGQL(v string) error

UnmarshalGQL implements the graphql.Marshaler interface

func (*Int64) UnmarshalJSON

func (t *Int64) UnmarshalJSON(data []byte) (err error)

type Time

type Time time.Time

func NowTime

func NowTime() Time

func Time0

func Time0() Time

func (Time) InByOffset

func (t Time) InByOffset(offset int) Time

InByOffset 时间时区转换

func (*Time) IsNotNull

func (t *Time) IsNotNull() bool

func (*Time) IsNull

func (t *Time) IsNull() bool

func (Time) MarshalGQL

func (t Time) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (Time) String

func (t Time) String() string

func (Time) ToTime

func (t Time) ToTime() time.Time

func (*Time) UnmarshalGQL

func (t *Time) UnmarshalGQL(v string) error

UnmarshalGQL implements the graphql.Marshaler interface

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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