Simple Date Calculation
Using Keyboard Maestro to display upcoming release information.
At my company we do weekly software releases. It's important for everyone to know the date of the next release and Code Freeze.
Here's my simple Keyboard Maestro macro on when the next release will be - we do releases on Thursdays.
This is the Unix command that I used:
date -v +Thur "+%B %d, %Y"
Two Weeks From Now
I have another macro that shows the release in two week:
date -v+2w -vThur "+%B %d, %Y"
Code Freeze Info
Code Freeze is important to know in any release planning. Even though our code freeze hasn't changed much in four years - I still get asked when is code freeze.
That's why I have this macro set up. With it, I can instantly tell anyone how many hours until the next code freeze - without interrupting my current train of thought.
This macro is perfect for slack or as a response to an email inquiry.
I type in... release.info
Keyboard Maestro Response is : The next Code Freeze is at xxx that's xxx hours from now.
Here's the action part of the Macro:
I used PHP in this example because it's a lot easier to do the calculation than to have multiple actions. One improvement that I could do would be to use the data from the "Next Release" macro to populate the release date.
Engineering and Product are impressed by how quickly I answer their question. It's as if I am sitting at my computer waiting to give them the answer.
You can see how nice it is to use Keyboard Maestro for repetitive tasks - it's even better when calculations are involved.
Add your Comments
Feel free to leave a comment about this post.
© 2022 - cryan.com