boombuler / recurrence Goto Github PK
View Code? Open in Web Editor NEWgolang package for calculating recurring events
License: MIT License
golang package for calculating recurring events
License: MIT License
Passing a date into ndWeekly that matches the criteria was returning that date instead of the next date.
Issue seems to be with ndWeekly checking:
if dat.Before(d) {
continue
}
instead of:
if !dat.After(d) {
continue
}
Updated ndWeekly and tweaked weekly_test.go to attempt to fix this issue in #3.
Setting the Recurrence.Location
parameter to a zone with DST will manipulate the time.
Example with Recurrence.Frequence: Weekly
:
2017-03-20 15:00:00 +0100 CET
CET switches to DST => +0200 CEST
Recurrence.GetNextDate() returns
2017-03-27 16:00:00 +0200 CEST
If you'd like, I can commit some tests.
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.