Versions in this module Expand all Collapse all v0 v0.7.0 Mar 10, 2017 v0.6.0 Dec 10, 2016 Changes in this version type Date + func (d *Date) UnmarshalText(data []byte) error + func (d Date) MarshalText() ([]byte, error) type DateTime + func (dt *DateTime) UnmarshalText(data []byte) error + func (dt DateTime) MarshalText() ([]byte, error) type Time + func (t *Time) UnmarshalText(data []byte) error + func (t Time) MarshalText() ([]byte, error) v0.5.0 Nov 30, 2016 Changes in this version + type Date struct + Day int + Month time.Month + Year int + func DateOf(t time.Time) Date + func ParseDate(s string) (Date, error) + func (d Date) AddDays(n int) Date + func (d Date) DaysSince(s Date) (days int) + func (d Date) In(loc *time.Location) time.Time + func (d Date) IsValid() bool + func (d Date) String() string + func (d1 Date) After(d2 Date) bool + func (d1 Date) Before(d2 Date) bool + type DateTime struct + Date Date + Time Time + func DateTimeOf(t time.Time) DateTime + func ParseDateTime(s string) (DateTime, error) + func (dt DateTime) In(loc *time.Location) time.Time + func (dt DateTime) IsValid() bool + func (dt DateTime) String() string + func (dt1 DateTime) After(dt2 DateTime) bool + func (dt1 DateTime) Before(dt2 DateTime) bool + type Time struct + Hour int + Minute int + Nanosecond int + Second int + func ParseTime(s string) (Time, error) + func TimeOf(t time.Time) Time + func (t Time) IsValid() bool + func (t Time) String() string