Hacker News new | ask | show | jobs
by steaminghacker 3368 days ago
A while back i wanted to write my own calendar to support custom recurrence rules, as well as the usual ones you always get. Custom rules would include things like calculation of Easter and other holidays and events that move about like moon phases.

So the idea was to build a translator that turns something like iCal into a "program". and if you're a hacker, you can write directly in this program :-)

I chose LUA for this because it's compact and sufficient for this requirement.

The other thing i wanted is to be able to write a date and/or a time as words on the end of any event and have the calendar figure it out for. There are so many times that i want to specify, for example, a relative event.

I might extend a cloud payment for 6 months. so i type cloud XYZ expires, 1 day before 6 months from today.

and things like: Radisson Hotel, May 27th at 2pm for 3 nights.

Also then terms like "Easter" and "xmas" can be part of the word parser. And stuff just like "beer friday with Pete."

One thing i still need to do is have it set up recurrences automatically for stuff like "Dave's Birthday, next Friday". So it puts in in the calendar, and adds annual recurrence automatically. would be nice.

I'm thinking of open sourcing what i have.