Skip to content

A plugin for Flow Launcher for Windows to compute difference between two dates

Notifications You must be signed in to change notification settings

LeoDupont/Flow.Launcher.Plugin.DateDiff

Repository files navigation

DateDiff plugin for Flow Launcher for Windows

This plugin allows you to compute the difference in days, months or years between two dates with Flow Launcher for Windows.

Usage

This plugin takes the following form of input:

dd <fromDate?> <toDate> <unit?>

Where:

  • dd is the default keyword of this plugin for Flow Launcher (can be changed in the settings)
  • <fromDate> is the date to start from (optional, default to today)
  • <toDate> is the date to end at
  • <unit> is the unit of time to compute the difference in (optional) (see Units below)

usage screenshot 1

usage screenshot 2

usage screenshot 3

usage screenshot 4

Date formats

This plugin supports several types of date formats:

Format Description Examples
today The current date today
A weekday name A day of the current week.
Names depend on your computer's locale.
Case insensitive.
monday
tues
Sund
An ISO 8601 date Format YYYY-MM-DD.
Month and day are optional and default to 01.
2022-04-16
2022-04
2022
D/M/Y
or M/D/Y
The order of month and day depends on your computer's locale,
both won't work at the same time and won't conflict.
Separators can be / or -
The month and year are optional and default to the current ones.
Years 0 to 99 will be set in 2000's.
16/04/2022 (fr-FR)
04/16/2022 (en-US)
16-4
16

Units

The last parameter is an optional unit of time to compute the difference in.

Unit Description
d Number of full days
m Number of months, possibly decimal
y Number of years, possibly decimal
default Number of full years + full months + full days

Installation

1. Install Node.js

This plugin is written in JavaScript, so you need to install Node.js to use it with Flow Launcher.

Just go to https://nodejs.org/ and download the LTS ("Long Term Support") version of Node.js.

2. Install the plugin

You can find this plugin in Flow's Plugin Store (in the app's settings), or by directly running this command in Flow Launcher:

pm install DateDiff

Credits

Icon downloaded from https://freeicons.io/regular-life-icons/calendar-icon-17781

About

A plugin for Flow Launcher for Windows to compute difference between two dates

Resources

Stars

Watchers

Forks

Packages

No packages published