kytrinyx / timetress Goto Github PK
View Code? Open in Web Editor NEWKnows about holidays and workdays. At least in Norway, for now.
License: MIT License
Knows about holidays and workdays. At least in Norway, for now.
License: MIT License
christmas_eve = Timetress::Norway.next_christmas_eve
=> Tue, 24 Dec 2012
christmas = Timetress::Norway.next_christmas
=> Tue, 25 Dec 2012
describe "Christmas" do
it "is on the twentyfourth day of December and there is no difference between christmas eve and christmas" do
christmas_eve.day.should eq 24
christmas.day.should eq 24
end
end
I can see from the timtress code that changing this would mean that all other locales would have to implement their own christmas. Which is cumbersome. Maye a local override?
For holidays that need a locale (mothersday, fathersday, ...) raise a helpful error to suggest why you can't have it by asking Timetress.next_mothersday
.
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.