Documentation ¶
Index ¶
- Constants
- Variables
- type Ago
- type Millis
- func (em Millis) Add(d time.Duration) Millis
- func (em Millis) Ago() Ago
- func (em Millis) AttributeValue() *dynamodb.AttributeValue
- func (em Millis) Format(layout string) string
- func (em Millis) Int64() int64
- func (em Millis) MarshalJSON() ([]byte, error)
- func (em Millis) Resolver() *Resolver
- func (em *Millis) Scan(src interface{}) error
- func (em Millis) Time() time.Time
- func (em *Millis) UnmarshalJSON(data []byte) error
- func (em Millis) Value() (driver.Value, error)
- type Resolver
Constants ¶
View Source
const ( Second = "sec" Minute = "min" Hour = "hr" Day = "day" Week = "wk" Month = "mo" Year = "yr" )
View Source
const (
Scale = int64(time.Millisecond)
)
Variables ¶
View Source
var ( ET *time.Location PT *time.Location )
Functions ¶
This section is empty.
Types ¶
type Millis ¶
type Millis int64
func (Millis) AttributeValue ¶
func (em Millis) AttributeValue() *dynamodb.AttributeValue
func (Millis) MarshalJSON ¶
func (Millis) Resolver ¶
Resolver provides a resolver usable by github.com/neelance/graphql-go
type Epoch { date: String! time: String! secs: Int! ago: String! }
func (*Millis) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.