WatchMaker Feature Requests All the ideas and discussions
3 votes Vote

Time (current, cal start/stop) in UNIX seconds

Making calendar event start/stop and current time available in UNIX seconds (seconds since 1970) would make dealing with multi-day / long duration events trivial in scripting. Basically it would allow

((cal1_ssec < time_sec) and (cal1_esec > time_sec)) and 'In the event!' or 'not in the event'

No matter when the event started (possibly days ago) and ends (possibly days in the future). This way you wouldn't have to do complex considerations of whether start > end or end > start to determine your % range of the event.

(You don't need to do this in seconds necessarily, days since 1970 or hours or something else fractional could work too, as long as they are from a fixed point in time).

Christopher Ashton , 07.05.2015, 17:38
Idea status: under consideration


Christopher Ashton, 07.05.2015, 17:49
I should add, currently I'm assuming that WatchMaker either doesn't support events longer than 24h at all, or breaks the event up into a series of 24h events. This would add support for the long events.

Leave a comment