Jump to content

Simple Date Tools


Recommended Posts

Now that I've discovered the Gallery, I decided to tidy up one of workflows and put it on GitHub and share it, with a view to submitting.


The GitHub repository is here: https://github.com/akrabat/alfred-date-tools.

 

You can install here: https://alfred.app/workflows/akrabat/date-tools/

 

It contains a couple of simple date related things that I found that I looked up frequently, so I automated them into Alfred:

 

Day Number:  Type dn followed by a date to show the day number for a given date. This is a number between 1 and 366, so 1st Jan is 1, 13 March 2023 is 72, but 13 March 2024 is 73 as 2024 is a leap year.
 

This is also a quick way to find out the day of the week for a given day.

image.thumb.png.25f83ed2890d055c670c17de23544392.png

 

Is Leap Year: Type `isleapyear` followed by a year to see if that year is a leap year or not.

 

image.thumb.png.f047f0f51477f4cb4385c0201a21d6d7.png

 

The keywords used for Day Number and Is Leap Year are configurable on the Workflow's configuration page and it depends on GNU's `date` utility which is called `gate` once installed via `brew install coreutils`.

 

Edited by akrabat
Added link to Gallery
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...