datetime

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DateParser = func(input string) (*time.Time, error) {
	return wrapperInstance.parse(input, 0, dateParseType)
}
View Source
var DateStartEndParser = func(input string) (*DateFilters, error) {
	return wrapperInstance.filterParser(input, dateParseType)
}

Exported date parser

View Source
var DateTimeParser = func(input string) (*time.Time, error) {
	return wrapperInstance.parse(input, 0, dateTimeParseType)
}

DateTime parser

Functions

This section is empty.

Types

type DateFilters

type DateFilters struct {
	Start *time.Time
	End   *time.Time
}

func (*DateFilters) Contains

func (filters *DateFilters) Contains(g *GraphTime) bool

type GraphTime

type GraphTime time.Time

GraphTime

func (*GraphTime) Marshal

func (t *GraphTime) Marshal() *GraphTimeMarshal

Marshal is called by TodoTask.MarshalJSON

func (*GraphTime) UnmarshalJSON

func (t *GraphTime) UnmarshalJSON(b []byte) (err error)

type GraphTimeMarshal

type GraphTimeMarshal struct {
	DateTime string `json:"dateTime"`
	TimeZone string `json:"timeZone"`
}

Jump to

Keyboard shortcuts

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