Documentation ¶ Index ¶ type DateTime func DateTimeNow() *DateTime func (dt *DateTime) Add(duration time.Duration) *DateTime func (dt *DateTime) MarshalJSON() ([]byte, error) func (dt *DateTime) ToUnixDate() string func (dt *DateTime) Truncate(d time.Duration) *DateTime func (dt *DateTime) UnmarshalJSON(b []byte) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DateTime ¶ type DateTime struct { time.Time } DateTime ... func DateTimeNow ¶ func DateTimeNow() *DateTime DateTimeNow ... func (*DateTime) Add ¶ func (dt *DateTime) Add(duration time.Duration) *DateTime func (*DateTime) MarshalJSON ¶ func (dt *DateTime) MarshalJSON() ([]byte, error) MarshalJSON ... func (*DateTime) ToUnixDate ¶ func (dt *DateTime) ToUnixDate() string ToUnixDate ... func (*DateTime) Truncate ¶ func (dt *DateTime) Truncate(d time.Duration) *DateTime func (*DateTime) UnmarshalJSON ¶ func (dt *DateTime) UnmarshalJSON(b []byte) (err error) UnmarshalJSON ... Source Files ¶ View all Source files date.go Click to show internal directories. Click to hide internal directories.