fidotime

package
v0.0.0-...-a35f291 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateParser

type DateParser struct {
	// contains filtered or unexported fields
}

func NewDateParser

func NewDateParser() *DateParser

func (*DateParser) Parse

func (self *DateParser) Parse(date []byte) (*FidoDate, error)

type DurationParser

type DurationParser struct {
}

func NewDurationParser

func NewDurationParser() *DurationParser

func (*DurationParser) Parse

func (self *DurationParser) Parse(duration string) (time.Duration, error)

type FidoDate

type FidoDate struct {
	// contains filtered or unexported fields
}

func NewFidoDate

func NewFidoDate() *FidoDate

func (FidoDate) CreateTime

func (self FidoDate) CreateTime(zone *time.Location) (*time.Time, error)

func (FidoDate) FTSC

func (self FidoDate) FTSC() []byte

func (*FidoDate) SetNow

func (self *FidoDate) SetNow()

type TimeZoneParser

type TimeZoneParser struct {
	// contains filtered or unexported fields
}

func NewTimeZoneParser

func NewTimeZoneParser() *TimeZoneParser

func (*TimeZoneParser) Parse

func (self *TimeZoneParser) Parse(zone string) (*time.Location, error)

/ Example: +0100, 0300, -0700

Jump to

Keyboard shortcuts

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