designing a usable notation for returning events
Posted: Wed Apr 19, 2006 4:16 pm
Hi,
This is not the point, just a little background:
I'm in the process of developing a small app that will produce a calendar.
What I would love to do is to create an easy way for users to add events that will rerturn like: yearly, every first monday of the month, every week, every three weeks, every 3 months except if it's on a sunday, etc.
And (here comes the point!) I would love to make it so that it's just editing a text-file. Like some kind of regex for dates that humans and computers can read almost as easily (leaning towards humans, in contrast to regexs).
Anyone got any ideas?
I've got some kind of feeling that the date-format constants used for date(format, timestamp) could be useful in some way.
What I'm aiming at is something like:
yearly(24/12): fill up chimney with broken glass
monthly(monday(1):17.15): call probation officer
daily(21.00): go to bed as to preserve some kind of sense of humor
/tsr
This is not the point, just a little background:
I'm in the process of developing a small app that will produce a calendar.
What I would love to do is to create an easy way for users to add events that will rerturn like: yearly, every first monday of the month, every week, every three weeks, every 3 months except if it's on a sunday, etc.
And (here comes the point!) I would love to make it so that it's just editing a text-file. Like some kind of regex for dates that humans and computers can read almost as easily (leaning towards humans, in contrast to regexs).
Anyone got any ideas?
I've got some kind of feeling that the date-format constants used for date(format, timestamp) could be useful in some way.
What I'm aiming at is something like:
yearly(24/12): fill up chimney with broken glass
monthly(monday(1):17.15): call probation officer
daily(21.00): go to bed as to preserve some kind of sense of humor
/tsr