types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DATE_FORMAT_STRING string = "2006-01-02"
View Source
const FILE_ENDING = ".tt"

Variables

This section is empty.

Functions

func IsDateBetween

func IsDateBetween(b, m, e Date) bool

func IsValidGroupFile

func IsValidGroupFile(path string) bool

func IsValidGroupFolder

func IsValidGroupFolder(path string) bool

Types

type Date

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

func CreateDateFromString

func CreateDateFromString(datestr string) (*Date, error)

func CreateDateFromTime

func CreateDateFromTime(ts time.Time) *Date

func (*Date) IsLessThan

func (d1 *Date) IsLessThan(d2 Date) bool

func (*Date) IsZero

func (d *Date) IsZero() bool

func (*Date) Set

func (d *Date) Set(s string) error

func (*Date) String

func (d *Date) String() string

func (*Date) ToDate

func (d *Date) ToDate() Date

func (*Date) Type

func (d *Date) Type() string

type DateList

type DateList []Date

func (DateList) Len

func (dl DateList) Len() int

func (DateList) Less

func (dl DateList) Less(i, j int) bool

func (DateList) Swap

func (dl DateList) Swap(i, j int)

type DaySeconds

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

func CreateSecondsFromBytes

func CreateSecondsFromBytes(b []byte) DaySeconds

func CreateSecondsFromDuration

func CreateSecondsFromDuration(d time.Duration) DaySeconds

func CreateSecondsFromString

func CreateSecondsFromString(s string) DaySeconds

func CreateSecondsFromUint32

func CreateSecondsFromUint32(num uint32) DaySeconds

func (DaySeconds) Add

func (s DaySeconds) Add(s2 DaySeconds) DaySeconds

func (DaySeconds) GetAsUint32

func (s DaySeconds) GetAsUint32() uint32

func (DaySeconds) IsZero

func (s DaySeconds) IsZero() bool

func (*DaySeconds) String

func (s *DaySeconds) String() string

Used for writing to files.

func (DaySeconds) Sub

func (s DaySeconds) Sub(s2 DaySeconds) DaySeconds

type Group

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

func CreateGroupFromString

func CreateGroupFromString(group_str string) Group

func (Group) Filename

func (group Group) Filename() string

func (Group) GetAncestors

func (group Group) GetAncestors(oldest_ancestor Group) []Group

If oldest_ancestor isn't actually an ancestor, an empty list will be returned. Use the empty group to get all ancestors.

func (Group) IsZero

func (group Group) IsZero() bool

func (Group) String

func (group Group) String() string

type MultiDaySeconds

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

Limit for agg output is like 5 billion centuries. So yeah... a long long time.

func (MultiDaySeconds) AddDaySeconds

func (mds MultiDaySeconds) AddDaySeconds(ds DaySeconds) MultiDaySeconds

func (*MultiDaySeconds) String

func (s *MultiDaySeconds) String() string

Jump to

Keyboard shortcuts

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