shinYeongHyeon / go-times

It will save your time such as coding a calendar!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-times

GitHub go.mod Go version Build Status Go Report Card codecov GoDoc ReleaseBadge

It will save your time such as coding a calendar program.

Installation

To install go-times package, you need to install Go and set your Go workspace first.

$ go get -u github.com/shinYeongHyeon/go-times

Contents

Dependency

Description

GetDateOfFirstMondayOfMonth

This will get date of first monday of month

func GetDateOfFirstMondayOfMonth(t time.Time) int

GetDateOfFirstTuesdayOfMonth

This will get date of first tuesday of month

func GetDateOfFirstTuesdayOfMonth(t time.Time) int

GetDateOfFirstWednesdayOfMonth

This will get date of first wednesday of month

func GetDateOfFirstWednesdayOfMonth(t time.Time) int

GetDateOfFirstThursdayOfMonth

This will get date of first thursday of month

func GetDateOfFirstThursdayOfMonth(t time.Time) int

GetDateOfFirstFridayOfMonth

This will get date of first friday of month

func GetDateOfFirstFridayOfMonth(t time.Time) int

GetDateOfFirstSaturdayOfMonth

This will get date of first saturday of month

func GetDateOfFirstSaturdayOfMonth(t time.Time) int

GetDateOfFirstSundayOfMonth

This will get date of first sunday of month

func GetDateOfFirstSundayOfMonth(t time.Time) int

GetFirstWorkingTimeOfMonth

This will get First Working TimeObject of request year, month.

func GetFirstWorkingTimeOfMonth(year, month int) time.Time

GetNthWeekOfMonth

This will get nth Week of Month
(Regard the start of the week as Sunday)

func GetNthWeekOfMonth(t time.Time) int

GetLastTimeOfMonth

This will get Last TimeObject Of Month

func GetLastTimeOfMonth(t time.Time) time.Time

About

It will save your time such as coding a calendar!

License:MIT License


Languages

Language:Go 100.0%