types

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 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 ParseDate

func ParseDate(date string) (*DateTime, error)

ParseDate transforms the passed date string (time.RFC3339) to a DateTime struct

func (*DateTime) MarshalJSON

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

MarshalJSON ...

func (*DateTime) ToUnixDate added in v2.27.0

func (dt *DateTime) ToUnixDate() string

ToUnixDate ...

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