Skip to content

Latest commit

 

History

History
35 lines (33 loc) · 718 Bytes

README.md

File metadata and controls

35 lines (33 loc) · 718 Bytes

go-simpletime

An extension of the go standard library time package which provides a number of convenience functions for retrieving new times based on the provided reference time.

Getting started

Download and install the package

go get github.com/stephanbaker/go-simpletime

Provided Functions

This package provides the following functions:

  • NewSimpleTime
  • BeginningOfYear
  • BeginningOfMonth
  • BeginningOfDay
  • BeginningOfHour
  • BeginningOfMinute
  • BeginningOfSecond
  • EndOfYear
  • EndOfMonth
  • EndOfDay
  • EndOfHour
  • EndOfMinute
  • EndOfSecond
  • NextOccurrenceOfWeekday
  • NextSunday
  • NextMonday
  • NextTuesday
  • NextWednesday
  • NextThursday
  • NextFriday
  • NextSaturday
  • AddDays
  • NextDay
  • PrevDay