Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hours-relative calculations #6

Open
dltj opened this issue Jul 21, 2013 · 3 comments
Open

Hours-relative calculations #6

dltj opened this issue Jul 21, 2013 · 3 comments

Comments

@dltj
Copy link

dltj commented Jul 21, 2013

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".

@lemonmade
Copy link
Owner

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.

@dltj
Copy link
Author

dltj commented Jul 25, 2013

Thanks for thinking about taking this on. And thanks for publishing your work; it has been a great timesaver for me already.

@dltj
Copy link
Author

dltj commented Nov 5, 2014

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants