Utils

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeOutputDir added in v1.3.0

func MakeOutputDir() (string, string, error)

MakeOutputDir makes the output directory, sends the full path and the subdir value for making files as return values for the function as well as any errors that might have occured since this hits a world time API.

func RoundTo added in v1.2.3

func RoundTo(n float64, decimals uint32) float64

RoundTo rounds a float number to a specified number of decimal places.

Types

type TimeExt

type TimeExt struct {
	T time.Time
	Y int
}

func (TimeExt) DaysInMonth

func (tm TimeExt) DaysInMonth() int

func (TimeExt) DaysInYear

func (tm TimeExt) DaysInYear() int

func (TimeExt) EndOfMonth

func (tm TimeExt) EndOfMonth() time.Time

func (TimeExt) EndOfYear

func (tm TimeExt) EndOfYear() time.Time

EndOfYear end of year

Jump to

Keyboard shortcuts

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