Skip to content

Create periods of Time. Normalize them for custom calculations.

License

Notifications You must be signed in to change notification settings

andrelugomes/time-periods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time Periods

Create periods of Time. Normalize them for custom calculations.

Install

go get github.com/andrelugomes/time-periods

Import

import "github.com/andrelugomes/time-periods/periods"

Usage

Period

period := Period{
		time.Date(2020, 01, 02, 11, 0, 0, 0, time.UTC),
		time.Date(2020, 01, 06, 0, 0, 0, 0, time.UTC),
	}

Normalize

periods := []Period{p1,p2}

uniques := Normalize(periods)

Comparison

comparison := Comparison{first, second}

comparison.Is...

About

Create periods of Time. Normalize them for custom calculations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages