date

package
v0.0.0-...-9170839 Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

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

func New

func New(year int, month time.Month, day int, loc *time.Location) Date

func NewTime

func NewTime(t time.Time) Date

func Now

func Now() Date

func Parse

func Parse(layout, value string) (Date, error)

func ParseInLocation

func ParseInLocation(layout, value string, loc *time.Location) (Date, error)

func Unix

func Unix(sec int64, nsec int64) Date

func (Date) Add

func (d Date) Add(dur time.Duration) Date

func (Date) AddDate

func (d Date) AddDate(years int, months int, days int) Date

func (Date) After

func (d Date) After(u Date) bool

func (Date) AppendFormat

func (d Date) AppendFormat(b []byte, layout string) []byte

func (Date) Before

func (d Date) Before(u Date) bool

func (Date) Clock

func (d Date) Clock() (hour, min, sec int)

func (Date) Date

func (d Date) Date() (year int, month time.Month, day int)

func (Date) Day

func (d Date) Day() int

func (Date) Equal

func (d Date) Equal(u Date) bool

func (Date) Format

func (d Date) Format(layout string) string

func (*Date) GobDecode

func (d *Date) GobDecode(data []byte) error

func (Date) GobEncode

func (d Date) GobEncode() ([]byte, error)

func (Date) Hour

func (d Date) Hour() int

func (Date) ISOWeek

func (d Date) ISOWeek() (year, week int)

func (Date) In

func (d Date) In(loc *time.Location) Date

func (Date) IsZero

func (d Date) IsZero() bool

func (Date) Local

func (d Date) Local() Date

func (Date) Location

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

func (Date) MarshalBinary

func (d Date) MarshalBinary() ([]byte, error)

func (Date) MarshalJSON

func (d Date) MarshalJSON() ([]byte, error)

func (Date) MarshalText

func (d Date) MarshalText() ([]byte, error)

func (Date) Minute

func (d Date) Minute() int

func (Date) Month

func (d Date) Month() time.Month

func (Date) Nanosecond

func (d Date) Nanosecond() int

func (Date) Round

func (d Date) Round(dur time.Duration) Date

func (*Date) Scan

func (d *Date) Scan(src interface{}) error

func (Date) Second

func (d Date) Second() int

func (Date) String

func (d Date) String() string

func (Date) Sub

func (d Date) Sub(u Date) time.Duration

func (Date) Truncate

func (d Date) Truncate(dur time.Duration) Date

func (Date) UTC

func (d Date) UTC() Date

func (Date) Unix

func (d Date) Unix() int64

func (Date) UnixNano

func (d Date) UnixNano() int64

func (*Date) UnmarshalBinary

func (d *Date) UnmarshalBinary(data []byte) error

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(data []byte) error

func (*Date) UnmarshalText

func (d *Date) UnmarshalText(data []byte) error

func (Date) Value

func (d Date) Value() (driver.Value, error)

func (Date) Weekday

func (d Date) Weekday() time.Weekday

func (Date) Year

func (d Date) Year() int

func (Date) YearDay

func (d Date) YearDay() int

func (Date) Zone

func (d Date) Zone() (name string, offset int)

Jump to

Keyboard shortcuts

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