date

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DateOnlyFormat = time.DateOnly
View Source
const DateTimeFormat = DateOnlyFormat + "T" + TimeOnlyFormat
View Source
const TimeOnlyFormat = "15:04:05.000"

Variables

This section is empty.

Functions

func MarshalDateOnly

func MarshalDateOnly(t time.Time) graphql.Marshaler

func MarshalDateTime

func MarshalDateTime(t time.Time) graphql.Marshaler

func MarshalTimeOnly

func MarshalTimeOnly(t time.Time) graphql.Marshaler

func UnmarshalDateOnly

func UnmarshalDateOnly(v interface{}) (time.Time, error)

func UnmarshalDateTime

func UnmarshalDateTime(v interface{}) (time.Time, error)

func UnmarshalTimeOnly

func UnmarshalTimeOnly(v interface{}) (time.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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