dates

package
Version: v0.0.0-...-2ee3236 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between

func Between(toTest, start, end time.Time) bool

func Day

func Day(in time.Time) time.Time

func DayAfter

func DayAfter(t time.Time) time.Time

func DayBefore

func DayBefore(t time.Time) time.Time

func EndOfMonth

func EndOfMonth(d time.Time) time.Time

func New

func New(year, month, day int) time.Time

func NextMonth

func NextMonth(d time.Time) time.Time

func PrevMonth

func PrevMonth(d time.Time) time.Time

Types

type Times

type Times []time.Time

func Range

func Range(start, end time.Time) (list Times)

func (Times) Len

func (list Times) Len() int

func (Times) Less

func (list Times) Less(a, b int) bool

func (Times) Swap

func (list Times) Swap(a, b int)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL