types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Add reappends the time.Add method to 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

Truncate reappends the time.Truncate method to DateTime

func (*DateTime) UnmarshalJSON

func (dt *DateTime) UnmarshalJSON(b []byte) error

UnmarshalJSON ...

Jump to

Keyboard shortcuts

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