grsmv / goweek Goto Github PK
View Code? Open in Web Editor NEWISO 8601 compatible library for working with week entities for Go
Home Page: https://godoc.org/github.com/grsmv/goweek
License: MIT License
ISO 8601 compatible library for working with week entities for Go
Home Page: https://godoc.org/github.com/grsmv/goweek
License: MIT License
Last week of the year can be possible (85%) first week of the next year - thay will have different numbers in year range, but same days in. It should be reflected and fixed during calculation of .Previous
and .Next
.
gweek, _ := goweek.NewWeek(2016, 2, 1)
log.Debugf("Year:%d Week:%d gweek: %+v", year, week, gweek)
gives :
Year:2016 Week:2 gweek: &{Days:[2016-01-04 00:00:00 +0000 UTC 2016-01-05 00:00:00 +0000 UTC 2016-01-06 00:00:00 +0000 UTC 2016-01-07 00:00:00 +0000 UTC 2016-01-08 00:00:00 +0000 UTC 2016-01-09 00:00:00 +0000 UTC 2016-01-10 00:00:00 +0000 UTC]
but week from 2016-01-04 to 2016-01-10 is week 1, not week 2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.