listing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 3 Imported by: 1

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

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 ...

Jump to

Keyboard shortcuts

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