dateProperty

package
v0.0.0-...-7538a8c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	time.Time
}

func StringToDate

func StringToDate(val string) Date

func (*Date) MarshalJSON

func (ct *Date) MarshalJSON() ([]byte, error)

func (*Date) ToDateFormat

func (ct *Date) ToDateFormat() string

func (*Date) ToDateISOFormat

func (ct *Date) ToDateISOFormat() string

func (*Date) UnmarshalJSON

func (ct *Date) UnmarshalJSON(b []byte) (err error)

type DateTime

type DateTime struct {
	time.Time
}

func StringToDateTime

func StringToDateTime(val string) DateTime

func ToDateTime

func ToDateTime(val time.Time) DateTime

func (DateTime) BeginingOfDay

func (ct DateTime) BeginingOfDay() time.Time

func (DateTime) EndOfDay

func (ct DateTime) EndOfDay() time.Time

func (*DateTime) MarshalJSON

func (ct *DateTime) MarshalJSON() ([]byte, error)

func (*DateTime) ToDateTimeFormat

func (ct *DateTime) ToDateTimeFormat() string

func (*DateTime) ToDateTimeISOFormat

func (ct *DateTime) ToDateTimeISOFormat() string

func (*DateTime) UnmarshalJSON

func (ct *DateTime) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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