Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akrabat/alfred-date-tools
Date tools for Alfred
https://github.com/akrabat/alfred-date-tools
Last synced: 3 months ago
JSON representation
Date tools for Alfred
- Host: GitHub
- URL: https://github.com/akrabat/alfred-date-tools
- Owner: akrabat
- License: mit
- Created: 2023-04-09T15:29:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-28T08:31:39.000Z (7 months ago)
- Last Synced: 2024-10-04T11:29:50.348Z (4 months ago)
- Language: Shell
- Size: 660 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alfred Date Tools
Date related tools for use within [Alfred](https://alfredapp.com).
## 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.
By default, it uses the keyword `dn` to initiate. This is configurable.
![Screenshot of Day Number](readme-assets/ss-daynumber.png)
## Is Leap Year
Type `isleapyear` followed by a year to see if that year is a leap year or not.
![Screenshot of Is Leap Year](readme-assets/ss-isleapyear.png)
## Days Between
Type `db` followed by two dates separated by a comma to display the number of days betwen them.
![Screenshot of Days Between](readme-assets/ss-daysbetween.png)
# Configuration
The keywords used for Day Number and Is Leap Year are configurable on the Workflow's configuration page.
# Dependencies
This workflow depends on the GNU date utility found in [coreutils](https://formulae.brew.sh/formula/coreutils). The workflow assumes that the utility is named `gdate`.
This can be installed using Homebrew: `brew install coreutils`