functions

package
v0.0.0-...-066eb12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDate

func ParseDate(str string) time.Time

Types

type Month

type Month struct {
	Day time.Time // Day to work with
	Gap int       // Gap in time by months 1/2/3/12
}

Month sctruct

func (*Month) Current

func (m *Month) Current() (int, time.Month, *time.Location)

Create the current Date and Location for that day

type MonthWorker

type MonthWorker struct {
	Month Month
}

Struct to handle the original month struct with new methods

func ConditionalDate

func ConditionalDate(w http.ResponseWriter, r *http.Request) (MonthWorker, string, string)

func (*MonthWorker) FirstOfLastOfMonth

func (m *MonthWorker) FirstOfLastOfMonth() time.Time

Get the first day of a previous or next month

func (*MonthWorker) FirstOfMonth

func (m *MonthWorker) FirstOfMonth() time.Time

Get the first day of the actual month

func (*MonthWorker) LastOfLastOfMonth

func (m *MonthWorker) LastOfLastOfMonth() time.Time

Get the last day of a previous or next month

func (*MonthWorker) LastOfMonth

func (m *MonthWorker) LastOfMonth() time.Time

Get the last day of the actual month

func (*MonthWorker) RemainingDays

func (m *MonthWorker) RemainingDays() int

Jump to

Keyboard shortcuts

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