Hours-relative calculations
dltj opened this issue · 3 comments
Is it possible to use hours in relative datetime calculations? For instance, I have a template for my webinars and a task to set the do-not-disturb on Skype one hour prior to the event:
due: $dateTimeOfWebinar - 1hour
When prompted for the date, if I enter "September 25 2pm", the datetime due is set to "September 25 2pm" rather than "September 25 1pm".
Yes, I definitely want to work on this. I actually want to rewrite the whole date parsing part of the script to be more fully-featured and more stable. I'll keep this open, but I'm not sure when I'll get the chance to work on it — probably not for a few weeks.
Thanks for thinking about taking this on. And thanks for publishing your work; it has been a great timesaver for me already.
Has your recent work taken this into account? With an input of December 1, 2014 11:00
, the processing string due: $dateTimeOfWebinar -1d at 5:00pm
sets a due date of "11/10/2014 2:00PM" and the processing string start: $dateTimeOfWebinar + 2h
sets a start date of "12/1/2014 1:59AM". One positive note: the processing string due: $dateTimeOfWebinar at 5:00pm
is indeed setting the due date to "12/1/2014 5:00PM".