Skip to content

An extension of the go standard library time package which provides some useful helper functions.

License

Notifications You must be signed in to change notification settings

stephanbaker/go-simpletime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An extension of the go standard library time package which provides some useful helper functions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages