utils

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BTreeDescendFirstLessOrEqual

func BTreeDescendFirstLessOrEqual[I btree.Item](tree *btree.BTree, item I) I

func BTreeToSlice added in v0.3.5

func BTreeToSlice[I btree.Item](tree *btree.BTree) []I

func BeginingOfDay added in v0.4.5

func BeginingOfDay(date time.Time) time.Time

func BeginningOfFinancialYear added in v0.1.3

func BeginningOfFinancialYear(date time.Time) time.Time

func BeginningOfMonth added in v0.1.3

func BeginningOfMonth(date time.Time) time.Time

func EndOfFinancialYear added in v0.1.3

func EndOfFinancialYear(date time.Time) time.Time

func EndOfMonth added in v0.1.3

func EndOfMonth(date time.Time) time.Time

func FY added in v0.2.2

func FY(date time.Time) string

func FYHuman added in v0.3.1

func FYHuman(date time.Time) string

func GroupByFY added in v0.4.5

func GroupByFY[G GroupableByDate](groupables []G) map[string][]G

func GroupByMonth added in v0.4.5

func GroupByMonth[G GroupableByDate](groupables []G) map[string][]G

func IsCurrency added in v0.3.7

func IsCurrency(currency string) bool

func IsSameOrParent added in v0.2.4

func IsSameOrParent(account string, comparison string) bool

func IsWithDate added in v0.1.5

func IsWithDate(date time.Time, start time.Time, end time.Time) bool

func MaxTime added in v0.4.2

func MaxTime(a time.Time, b time.Time) time.Time

Types

type GroupableByDate added in v0.4.5

type GroupableByDate interface {
	GroupDate() time.Time
}

Jump to

Keyboard shortcuts

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