jenz Posted January 21, 2016 Share Posted January 21, 2016 Okay. Seems I've solved my question. Looking through another workflow I figured out my mistake. I was using an Output module. Needed to use an Action module. Working now. dfay 1 Link to comment
MuppetGate Posted January 27, 2016 Author Share Posted January 27, 2016 Okay. Seems I've solved my question. Looking through another workflow I figured out my mistake. I was using an Output module. Needed to use an Action module. Working now. Great stuff. Glad you managed to sort it out. Link to comment
Cedric Posted March 28, 2016 Share Posted March 28, 2016 Hello, Thanks for this workflow, this is an amazing piece of work. Now that the exclude weekends behaviour has been changed, how can I know how many working days are left until a specific date? Link to comment
MuppetGate Posted April 1, 2016 Author Share Posted April 1, 2016 Hello, Thanks for this workflow, this is an amazing piece of work. Now that the exclude weekends behaviour has been changed, how can I know how many working days are left until a specific date? This should work the same way it worked before: dcalc today - christmas exclude weekends should give you how much time you have until Christmas day excluding weekends. Link to comment
MuppetGate Posted April 1, 2016 Author Share Posted April 1, 2016 Hello, I've updated the workflow following a twitter request. You now have a new date format to struggle with (the wordy format) which looks like this: dd mmm yyyy So you can now use abbreviated (three characters only!) month names in expressions. dcalc today - 23 apr 2016 http://www.packal.org/workflow/date-calculator cands 1 Link to comment
xilopaint Posted July 25, 2016 Share Posted July 25, 2016 input = dcalc 06/07/2016 +20d x weekends date format = dd/mm/yyyy The correct output should be 03/08/2016. Link to comment
MuppetGate Posted August 15, 2016 Author Share Posted August 15, 2016 (edited) input = dcalc 06/07/2016 +20d x weekends date format = dd/mm/yyyy The correct output should be 03/08/2016. Important Note! Do not skip over and surf something else! xilopaint has highlighted a problem with the exclude calculation, so steer clear of it. I'm looking into the tidiest way to fix it, or possibly pulling it altogether because I've never been quite comfortable with excluding something that causes the end result to get further away. It's always been an odd one that. Anyway, don't use it; it'll make you late for stuff. Edited August 15, 2016 by MuppetGate Link to comment
MuppetGate Posted September 3, 2016 Author Share Posted September 3, 2016 Another update. Unfortunately, it's just bug fixes and the removal of the exclude function as it has proved to be too unreliable to be trusted. xilopaint highlighted a problem whereby I wasn't accounting for excluded dates that fell inside the new range once the exclusion was calculated. For example, if I was excluding weekends and which pushed out the date to another weekend, then I wasn't accounting for the new weekend and pushing the date out even further. Having fixed the problem, I realised that it was now possible to enter an expression that the calculator would be unable to fill because date would keep getting pushed further back. Rather than have something that dangerous in the workflow, I decided to pull the functionality all together … sorry! So this latest version of the workflow is pretty much the same, aside from bug fixes and the removal of the exclusions. http://www.packal.org/workflow/date-calculator Link to comment
roccitman Posted November 22, 2016 Share Posted November 22, 2016 Hey there. Is there a quick way to change the date calc answer so it spits out the number of days? So I often need to find out how many days are between two dates. Example 2017-02-25 - 2017-01-01 Link to comment
MuppetGate Posted November 25, 2016 Author Share Posted November 25, 2016 On 22/11/2016 at 2:49 AM, roccitman said: Hey there. Is there a quick way to change the date calc answer so it spits out the number of days? So I often need to find out how many days are between two dates. Example 2017-02-25 - 2017-01-01 Yup, try the same thing but add the 'd' at the end to set the result format. 2017-02-25 - 2017-01-01 d Link to comment
Arkle Posted November 25, 2016 Share Posted November 25, 2016 (edited) On 11/22/2016 at 3:49 AM, roccitman said: Hey there. Is there a quick way to succeed with Phallosan Forte change the date calc answer so it spits out the number of days? So I often need to find out how many days are between two dates. Example 2017-02-25 - 2017-01-01 Sweet, I just tried it and it works great. Thanks for sharing Muppet. Edited March 22, 2022 by Arkle Link to comment
digisam Posted December 20, 2016 Share Posted December 20, 2016 Very handy, and very comprehensive thanks Link to comment
GhostTheSavage Posted March 28, 2017 Share Posted March 28, 2017 Am I completely blind? I cannot find the download link. Link to comment
xilopaint Posted March 28, 2017 Share Posted March 28, 2017 2 minutes ago, GhostTheSavage said: Am I completely blind? I cannot find the download link. You can find a big amount of workflows on Packal. Link to comment
GhostTheSavage Posted March 28, 2017 Share Posted March 28, 2017 I thought Packal wasn't supported anymore? Link to comment
xilopaint Posted March 28, 2017 Share Posted March 28, 2017 Just now, GhostTheSavage said: I thought Packal wasn't supported anymore? It's more a problem with Packal Search and Packal Updater workflows, the website is there as you can see. Link to comment
GhostTheSavage Posted March 28, 2017 Share Posted March 28, 2017 Ah okay. Cool. Thank you. Looks like dcalc does not work for Alfred 3? I keep getting invalid commands. Link to comment
xilopaint Posted March 28, 2017 Share Posted March 28, 2017 2 minutes ago, GhostTheSavage said: Ah okay. Cool. Thank you. Looks like dcalc does not work for Alfred 3? I keep getting invalid commands. From what I know all Alfred 2 workflows are Alfred 3 compatible. What commands are you trying and what are you getting on debug console? Link to comment
GhostTheSavage Posted March 28, 2017 Share Posted March 28, 2017 Nevermind. I am too used to Alfred's native auto populate. You have to type the full command in then "invalid command" disappears and the calculation displays. Link to comment
Tomasz Banas Posted April 6, 2017 Share Posted April 6, 2017 Is there a way just to type "dcalc mm/dd/yy" and see how many days it is since that day until today without typing "dcalc mm/dd/yy - today"? xilopaint 1 Link to comment
MuppetGate Posted April 7, 2017 Author Share Posted April 7, 2017 (edited) On 06/04/2017 at 6:48 AM, Tomasz Banas said: Is there a way just to type "dcalc mm/dd/yy" and see how many days it is since that day until today without typing "dcalc mm/dd/yy - today"? Unfortunately, no. But I have put in some abbreviations for some of the common functions. * today & the current time # now < yesterday > tomorrow If you want today's date, then just type: dcalc * So the slightly quicker way to do your calculation would be: dcalc mm/dd/yy-* Hope that helps. Mmm, looking at your question again, it looks like the answer is yes. Edited April 7, 2017 by MuppetGate Link to comment
MuppetGate Posted April 7, 2017 Author Share Posted April 7, 2017 Quick reminder folks. The spaces around the + and - are optional. dcalc 31.12.2017-* will work the same as: dcalc 31.12.2017 - * Link to comment
mimmordino Posted April 12, 2017 Share Posted April 12, 2017 @MuppetGate Any future plans to add the exclusion function back in? It's great for calculating dates for work days. xilopaint 1 Link to comment
xilopaint Posted April 13, 2017 Share Posted April 13, 2017 19 hours ago, mimmordino said: @MuppetGate Any future plans to add the exclusion function back in? It's great for calculating dates for work days. It would be a great boost on my productivity. Link to comment
xilopaint Posted July 3, 2017 Share Posted July 3, 2017 (edited) On 9/3/2016 at 7:55 AM, MuppetGate said: Another update. Unfortunately, it's just bug fixes and the removal of the exclude function as it has proved to be too unreliable to be trusted. xilopaint highlighted a problem whereby I wasn't accounting for excluded dates that fell inside the new range once the exclusion was calculated. For example, if I was excluding weekends and which pushed out the date to another weekend, then I wasn't accounting for the new weekend and pushing the date out even further. Having fixed the problem, I realised that it was now possible to enter an expression that the calculator would be unable to fill because date would keep getting pushed further back. Rather than have something that dangerous in the workflow, I decided to pull the functionality all together … sorry! So this latest version of the workflow is pretty much the same, aside from bug fixes and the removal of the exclusions. http://www.packal.org/workflow/date-calculator Hello @MuppetGate! I have created a python workflow to calculate working days. I could send it to you for implementing such feature in your much more comprehensive workflow. Edited July 3, 2017 by xilopaint Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now