Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LeEnno/alfred-date-calculator
Alfred workflow to display or calculate with current date and time.
https://github.com/LeEnno/alfred-date-calculator
Last synced: 3 days ago
JSON representation
Alfred workflow to display or calculate with current date and time.
- Host: GitHub
- URL: https://github.com/LeEnno/alfred-date-calculator
- Owner: LeEnno
- Created: 2013-03-30T12:48:32.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T11:48:43.000Z (over 3 years ago)
- Last Synced: 2024-08-02T03:11:56.227Z (3 months ago)
- Language: Ruby
- Size: 388 KB
- Stars: 86
- Watchers: 9
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- alfred-workflows - Date calculator - Display or calculate with current date and time. (Utility)
README
alfred-date-calculator
======================Alfred workflow to display or calculate with current date and time.
Usage
-----Install workflow and enter `date` to get the current date as a search result. Pressing enter will copy the formatted date to clipboard.
![Date Calculator in Alfred](https://raw.github.com/LeEnno/alfred-date-calculator/master/screenshot_date.png)
You can add or subtract years, months, weeks, days, hours, minutes and seconds i.e. to calculate a date in the future. Refer to the chapter *Options*.
Options
-------You can use:
- **y** for *years*
- **m** for *months*
- **w** for *weeks*
- **d** for *days*
- **h** for *hours*
- **min** for *minutes* (not colliding with **m** for months)
- **s** for *seconds*Prepend a number to the identifiers and optionally a minus sign for subtracting.
**Examples:**
- `date 3w`: today + 3 weeks
- `date -2y`: today - 2 years
- `date 2m -5d`: today + 2 months - 5 daysChange Default Format
---------------------You Probably don't want to stick with the default date format. Changing it is pretty easy. Just enter `dateformat` and type the format you like (or choose from the suggestions). You have to give a string as used in ~~[PHP's `date` function](http://php.net/manual/en/function.date.php "PHP date")~~ [strftime](http://strfti.me/ "strfti.me: strftime reference and sandbox for Ruby, Python, PHP"). You can disregard the `%`-character. The script will add it automagically for you.
Preview will be shown in realtime.
![Date Calculator in Alfred](https://raw.github.com/LeEnno/alfred-date-calculator/master/screenshot_dateformat_simple.png)
![Date Calculator with custom format](https://raw.github.com/LeEnno/alfred-date-calculator/master/screenshot_dateformat_custom.png)